Replies: 2 comments 4 replies
-
Public APIs commonly block user agents like curl's or Python's Enforce a rather strict rate-limit, unless the client sends a
I agree, this behaviour should be documented!
A more appropriate and intuitive status code would be |
Beta Was this translation helpful? Give feedback.
-
Maybe @NVBWSeifert can take care of this? |
Beta Was this translation helpful? Give feedback.
-
While working with the endpoint I discovered that it blocks certain user-agent headers, as described here: https://python.tutorialink.com/post-request-to-trias-api-does-not-work-with-requests/
The solution for me was just to set the user-agent manually to a working string, but it was hard to find out about this issue in the first place.
This seems to be a very weird issue and is rarely documented anywhere. However it would might make sense to document it, as else the requests will fail with 502 Error code, with no obvious reason. I contacted a contact at nvbw regarding this issue, but I'm lacking an answer for now, so this discussion forum seemed to be a good place to me.
If anyone has any thoughts on that, or did encounter this issue as well, I would appreciate some opinions :)
Beta Was this translation helpful? Give feedback.
All reactions