Replies: 1 comment
-
Maybe you aren't setting the User-Agent header field? If you could post the significantly different data you get, someone might be able to figure it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm experiencing inconsistent responses when calling the Weather.gov API endpoint https://api.weather.gov/gridpoints/LOX/160,43/forecast/hourly from my Java application compared to Postman requests.
When I make a request using Postman, I receive the expected weather forecast data. However, when I call the same endpoint with identical parameters from my Java application, the response differs significantly.
Here's the code I'm using to make the API request:
I've already tried:
Is there any known issue with the API that could cause different responses based on the client making the request? Are there specific headers or parameters required when accessing the API programmatically that might not be needed when using Postman?
Any guidance on how to ensure consistent responses between Postman and programmatic API calls would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions