GSA / code-gov-web

DEPRECATED 🛑- Federal Source Code policy implementation.
Other
407 stars 110 forks source link

Browse Projects not working #672

Closed vowelllDOE closed 5 years ago

vowelllDOE commented 5 years ago

Your issue may already be reported! Please search on the issue track before creating one.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

  1. navigate to code.gov, the agency drop down is empty
  2. click 'go' on the search
  3. the /browse-projects just says 'loading' and no results are found

Context

Your Environment

DanielJDufour commented 5 years ago

I'm having difficulty reproducing. It's an odd error. You're using Chrome, so that rules out a browser support/polyfill issue.

1) The agencies not appearing in the drop down indicates that the api call to get the agencies isn't working for some reason.

2) @vowelllDOE , do you type anything into the search box? If you click go without typing anything in, nothing should happen. image

3) Browse projects not loading indicates that the API call is failing to load the repos, too.

@froi and @saracope , could you try to reproduce the error and tell me if you notice anything in the console?

Additionally, @froi could you do a quick check of the api call logs and let me know if you see anything? Thanks!

@vowelllDOE , next time this happens, could you do be a big favor and take a screenshot of your dev console? image

Thank you all and I apologize again for this issue. It's really stumping me at the moment.

vowelllDOE commented 5 years ago

it's still happening image

vowelllDOE commented 5 years ago

when putting in a search term and getting the error "No repositories found"

image

DanielJDufour commented 5 years ago

@vowelllDOE , thank you. This is very helpful. It currently appears as if the issue is with the API. The API key is correct, but the API call isn't working for some reason. I'm going to create a separate issue in the api repo and post the link here.

froi commented 5 years ago

Found the issue. The API gateway was rejecting all requests from https://www.code.gov/. The www subdomain has been added to the HTTP referer whitelist and is now working.

Before updating the HTTP referer whitelist:

screenshot 2018-10-06 23 55 51

After updating the HTTP referer whitelist:

image

@vowelllDOE Can you please confirm that it is working on your end before I close this issue?

Thanks again for submitting this issue to us.

vowelllDOE commented 5 years ago

@froi it seems to be working this AM, yep. Thanks for your work on this. I'll let you know if it occurs again.

DanielJDufour commented 5 years ago

thanks all! I'm closing issue now.