codeforboston / codeforboston/police-data-trust
[BUG] Refreshing the Search Page renders "Error: No access token available"
- Dominant language
- Python
- Stars
- 64
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Searching for the first time works fine. But when that page is refreshed, output displayed is
"Error: No access token available" in red font.
**To Reproduce**
1. Open up the search section after logging in
2. Search for "a*" to get some initial data
3. Clicking search icon again, will re-run the same search | as expected
4. Refreshing the page (Ctrl + R) will not result in same behaviour as step 3
**Expected behavior**
Refreshing the page (Ctrl + R) should work similar to `step 3` from above
**Screenshots**
1. This is frontend requests made after hitting Enter in search bar (Expected)
2. Here, I just did Ctrl+R in previous page (The Problem)
**Desktop (please complete the following information):**
- OS : macOS Sequoia
- Device: Apple M3 Pro Chip
- Browser : Brave 1.85.116 (Official Build) (arm64)]
Contributor guide
Research direction
Start in the search section and trace how the access token is initialized during a page refresh versus when the search icon reruns the query. Reproduce the reported steps, then verify that refreshing the search page produces the same result as repeating the search after login.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100