-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
region detection #4
Comments
What's going on with this issue. I'm having the same error when starting the plugin. I'm in the UK |
With respect for having this plugin available at all... for a 'verified' plugin this really should have been sorted by now since it's a fairly simple fix. |
I took another look at the API calls that the app makes when connecting to the Dreo servers, and it looks like the app keeps an internal list of what countries/regions are assigned to each server. Going to try to implement similar logic in the plugin. Also let's try to keep the comments constructive here. |
@czitooo Can you test the code I just pushed? edit: published as v2.0.2 |
It worked for me from Mexico |
Worked for me perfectly in the UK |
@zyonse Works perfectly, nicely done 👍 |
Hey, sorry for not answering your last request on time.
I just tested it and saw the reason for the error in the log.
The problem is that your code adds the country code to the url instead of the region.
For example I live in Germany so my country code is DE. The url your plugin is trying to connect to is now app-api-de.dreo-cloud.com
but every dreo account in a country in Europe shares the same url which is app-api-eu.dreo-cloud.com.
So the current region detection code won't work unfortunately.
I guess the easiest solution would be to check if a connection to the us servers is successful, if not use the eu url, regardless of the country code.
The text was updated successfully, but these errors were encountered: