-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User agent blocked #94
Comments
I have the same issue |
Same issue here |
Same here |
+1 |
Here the same. Have also version 6.0.1 in latest Node Red. |
+1 |
new bisand/tibber-api/5.1.11 is working fine for me - try to upgrade |
A new version of node-red-contrib-tibber-api (v6.0.4) that should resolve this issue has just been released. It will be available for download/install in short time. I will start working on a new version that will enable setting a custom userAgent prefix in the config node. |
v6.0.4 is working fine for me! Thanks for providing an update that fast! |
@bisand , I was experiencing the same with my opensource project...
Of course it is needless to say you should not use your own strings... (bisand/tibber...) but use existing browser strings |
@gizmocuz, to clearify, I was contacted by Tibber and they asked me to use an own UserAgent string for this library (bisand/tibber…), to be able to identify and potentially block unwanted user agents, which the clearly have done now! I wonder if I should instead have a more generic string, like your suggestion. I do not have too much time working on this, so every contributions are welcome! Thanks! |
I'm afraid I am no expert in Node-Red or API integrations, but looking in the code I noticed on 4 places you create the current string. |
Hi, We did indeed block Setting this is a good practice, and we encourage users of the library to use it so we can more easily figure out what app/integration might need some attention or help from us. We would advise against spoofing browser user-agents or generating random user-agents. We have so far been fairly lax in our allowing nonconforming user-agents, but we're considering becoming more strict (and actually following what we're saying in our documentation) to mitigate the havok some of these kind of bad clients can wreak. Normally, almost 2% of all calls we get today are complete garbage, after all. FWIW, we have not yet seen any bad behavior by any clients reporting the 5.1.11 user-agent, but will let you know if we do. |
@jstaro, yes, "if someone is using your library incorrectly", this is usually the case. Requesting dynamic prices more than a few times a day is not needed, but I can assume users are polling each hour. Maybe for this project it's an option to store internally the result in the flow and compare this when another request is made. If today prices are requested, check if it is already requested online before and return that result. If it's another day, refresh the data The problem I have with blocking a complete user-agent api-version, is that systems depend on it. |
Hello,
today I saw that the timber-query is giving this debug message :
{"responseMessage":"User agent bisand/tibber-api/5.1.9 is blocked. Please downgrade to the previous version or upgrade to a later version that works properly","httpCode":400,"statusCode":400,"statusMessage":"Bad Request"}
The flow was working for a long time without problems.
Is this a temporary issue ?
My Version of node-red-contrib-tibber-api is 6.0.1, should be the latest.
Thanks for any information.
The text was updated successfully, but these errors were encountered: