Comments (8)
@skydiver I think so, they must have changed CORS policy for some reason. Unfortunately, my back end is in C#, and I cannot use this library, neither I found one for that language.
For the moment I'll use https://cors-anywhere.herokuapp.com/ and then I'll decide what to do.
Thank you, I think we can close here.
from ewelink-api.
What function call was this returned by?
I'm guessing the server was down.
Generic HTML definition of error 503:
The 503 Service Unavailable error is an HTTP status code that means the website's server is simply not available right now. Most of the time, it occurs because the server is too busy or because there's maintenance being performed on it.
from ewelink-api.
yes, I thought so, but I still get that error for days.
I'm simply doing this, in a react hook:
React.useEffect(() => {
const newConnection = new ewelink({
email: "<myEmail>",
password: "<myPass>",
region: "eu"
});
newConnection.login();
setConnection(newConnection);
}, []);
All this worked until few days ago.
Thanks,
Fakkio.
from ewelink-api.
@fakkio probably your browser is blocking the request to a different domain
try with a simple node script to confirm is not the server or your credentials
from ewelink-api.
Ok, i'll try with a node script. I don't get why this did work until few days ago.
from ewelink-api.
Hi, I confirm: in node it works like a charm! Any idea what can I do to make it work in the browser?
from ewelink-api.
@fakkio not sure if ewelink changed his CORS policy/config in the last few days or what ...
you can always make the requests to ewelink servers through your backend where CORS will not be a problem
from ewelink-api.
@fakkio how did you do that? Have the same problem in my react application.
from ewelink-api.
Related Issues (20)
- { error: 500, msg: 'SyntaxError: Unexpected token < in JSON at position 0' } HOT 1
- New and Simple REST API with Ready Scripts
- Error 401: Wrong account or password HOT 21
- ewelink
- Unable to install on Raspberry Pi
- THR316 doesn't update
- Unable to use power consumption with sonoff POW Elite HOT 6
- Get Voltage and current on POWR2 device HOT 2
- CoolkIt: Announcement regarding the expiration of the APPID referenced in this project and the cessation of maintenance of the v1 interface, suggesting migration HOT 7
- Error 401: Wrong account or password -- again HOT 54
- Error: 406 { error: 406, msg: 'Authentication failed' } HOT 21
- Support for changing the network indicator led?
- Is There Any PHP Version HOT 1
- error: 401, msg: 'Wrong account or password'
- Sonoff Dual R3 - Power Consumption Issue HOT 1
- Retrieve Room Names
- Reading the list of shared devices
- Switch to manual or automatic mode
- websocket closes unexpectedly, causing Node Red to crash
- { error: 406, msg: 'Authentication failed' } I am using right email and password HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ewelink-api.