root500 / homebridge-brunt-plug

2 stars 0 forks source link

403 Forbidden #3

Open simplenotezy opened 3 years ago

simplenotezy commented 3 years ago

I am using same login credentials as my app, but I notice in the logs that this error is produced:

Error: Request failed with status code 403
        at createError (/usr/local/lib/node_modules/homebridge-brunt-plug/node_modules/axios/lib/core/createError.js:16:15)
        at settle (/usr/local/lib/node_modules/homebridge-brunt-plug/node_modules/axios/lib/core/settle.js:18:12)
        at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/homebridge-brunt-plug/node_modules/axios/lib/adapters/http.js:202:11)
        at IncomingMessage.emit (events.js:327:22)
        at endReadableNT (internal/streams/readable.js:1327:12)
        at processTicksAndRejections (internal/process/task_queues.js:80:21)
        at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:62:3)
        at Function.module.exports.loopWhile (/usr/local/lib/node_modules/homebridge-brunt-plug/node_modules/deasync/index.js:70:11)
        at Function.sleep (/usr/local/lib/node_modules/homebridge-brunt-plug/node_modules/deasync/index.js:41:18)
        at Plug.getServices (/usr/local/lib/node_modules/homebridge-brunt-plug/dist/index.js:17479:26) {
    config: {
        adapter: [Function: httpAdapter],
        transformRequest: { '0': [Function: transformRequest] },
        transformResponse: { '0': [Function: transformResponse] },
        timeout: 3000,
        xsrfCookieName: 'XSRF-TOKEN',
        xsrfHeaderName: 'X-XSRF-TOKEN',
        maxContentLength: -1,
        validateStatus: [Function: validateStatus],
        headers: {
            Accept: 'application/vnd.brunt.v1+json',
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
            'Content-Length': 39,
            Origin: 'https://sky.brunt.co',
            'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E216'
        },
        method: 'post',
        baseURL: 'https://sky.brunt.co:443/',
        url: 'https://sky.brunt.co:443/session',
        data: '{"ID":"my@correct.email","PASS":"andCorrectPassword"}'
    },
    request: <ref *1> ClientRequest {

Also it prevents the whole homebridge from correctly starting - should be solved so it would fail silently.

Have to uninstall plugin untill then - it worked great for a while otherwise!