Skip to content

Bug Report

dylanlewis12 edited this page Dec 1, 2024 · 8 revisions

Bug Report Documentation

FAILURE: Build failed with an exception.

  • What went wrong:
  • Could not determine the dependencies of task ':app:processDebugResources'.
  • Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.

Resolution:

  • Reinstalled npm packages npm uninstall @rnmapbox/maps npm install @rnmapbox/maps

Failure: Git Repository Branch Sync Issue

  • What went wrong:
  • Current branch was way out of sync with the main branch, I needed to update my code

Resolution:

  • I used Git commands to rebase: git checkout main git pull origin main git checkout <branch-name> git reset --hard origin/main

ERROR: An API access token is required to use Mapbox GL.

  • What went wrong:
  • The API key wasn't named correctly
  • Key was not stored correctly

Resolution:

  • Named the key correctly and stored it correctly: mapboxgl.accessToken = process.env.REACT_APP_MAPBOX_ACCESS_KEY; REACT_APP_MAPBOX_ACCESS_KEY=...

Error: Fetching User Achievements

Error: Validation Error

Error: Failed to load resource: the server responded with a status of 400 (Bad Request)

  • What went wrong:
  • Adding a trip in the setup.js resulted in an alert error in the try/catch block even though the post call went through.

Resolution:

  • The error was caused by the incorrect model and app being referenced in the signals.py file in UserAchievements. Achievement = apps.get_model('UserAchievements', 'Achievement') UserAchievement = apps.get_model('UserAchievements', 'UserAchievement')

Error: 500 Internal Server

  • What went wrong:
  • POST and GET requests could not be performed.

Resolution:

  • The imports for the files in UserAchievements were referencing the wrong app so they were corrected. from UserAchievements.models import Achievement, UserAchievement

Authentication Error

  • What went wrong:
  • Logged in users could not create trips.

Resolution:

  • The code for the Setup.js file was modified to better handle storing and refreshing the tokens.