Apollon77 / daikin-controller-cloud

Connect and Control Daikin Cloud devices
MIT License
96 stars 26 forks source link

Invalid SAML response received: Invalid user attributes: name: The attribute is required #106

Closed mjonik closed 10 months ago

mjonik commented 1 year ago

Following error occurs after successfully loggin in over the proxy:

Daikin-Cloud: ERROR: {"error_description":"Invalid SAML response received: Invalid user attributes: name: The attribute is required ","error":"server_error","state":"8RKIbrk2rqZ3bRnZpCGmi-U50ua3NC07rukgliaQOC0"} Daikin-Cloud: Token detection ERROR: Error: server_error: Invalid SAML response received: Invalid user attributes: name: The attribute is required /home/jonik/node_modules/daikin-controller-cloud/lib/proxy.js:318 throw new Error(params.error + ': ' + params.error_description); ^

Error: server_error: Invalid SAML response received: Invalid user attributes: name: The attribute is required at DaikinCloudProxy._retrieveTokens (/home/jonik/node_modules/daikin-controller-cloud/lib/proxy.js:318:19) at /home/jonik/node_modules/daikin-controller-cloud/lib/proxy.js:80:63 at /home/jonik/node_modules/http-mitm-proxy/lib/proxy.js:1048:12 at /home/jonik/node_modules/async/dist/async.js:2588:44 at eachOfArrayLike (/home/jonik/node_modules/async/dist/async.js:506:13) at eachOf (/home/jonik/node_modules/async/dist/async.js:626:16) at awaitable (/home/jonik/node_modules/async/dist/async.js:211:32) at Object.eachLimit (/home/jonik/node_modules/async/dist/async.js:2691:16) at Object.awaitable (/home/jonik/node_modules/async/dist/async.js:211:32) at Proxy._onResponseHeaders (/home/jonik/node_modules/http-mitm-proxy/lib/proxy.js:1047:9)

Node.js v17.9.0

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

Additional context
Add any other context about the problem here.

Apollon77 commented 1 year ago

Does the non proxy login way works?

mjonik commented 1 year ago

nope. there is an other error : ) but i would like to say: thank you for your work and i know these type of "hacks" are usally prone to all kinds of problems coming from outside...

this is the direct login error: ode:internal/process/promises:279 triggerUncaughtException(err, true / fromPromise /); ^

RequestError: Unexpected retry option: retries at Request._destroy (/home/jonik/node_modules/@esm2cjs/got/build/cjs/core/index.js:482:15) at _destroy (node:internal/streams/destroy:109:25) at Request.destroy (node:internal/streams/destroy:71:5) at Request.flush (/home/jonik/node_modules/@esm2cjs/got/build/cjs/core/index.js:265:14) at lastHandler (/home/jonik/node_modules/@esm2cjs/got/build/cjs/create.js:63:20) at iterateHandlers (/home/jonik/node_modules/@esm2cjs/got/build/cjs/create.js:76:22) at got (/home/jonik/node_modules/@esm2cjs/got/build/cjs/create.js:94:12) at DaikinCloudController.login (/home/jonik/node_modules/daikin-controller-cloud/index.js:320:36) at main (/home/jonik/node_modules/daikin-controller-cloud/example/tokensaver.js:55:50) at /home/jonik/node_modules/daikin-controller-cloud/example/tokensaver.js:80:12 at Options.set retry [as retry] (/home/jonik/node_modules/@esm2cjs/got/build/cjs/core/options.js:889:15) at Options.merge (/home/jonik/node_modules/@esm2cjs/got/build/cjs/core/options.js:419:19) at new Options (/home/jonik/node_modules/@esm2cjs/got/build/cjs/core/options.js:372:16) at new Request (/home/jonik/node_modules/@esm2cjs/got/build/cjs/core/index.js:249:22) at got (/home/jonik/node_modules/@esm2cjs/got/build/cjs/create.js:58:21) at DaikinCloudController.login (/home/jonik/node_modules/daikin-controller-cloud/index.js:320:36) at main (/home/jonik/node_modules/daikin-controller-cloud/example/tokensaver.js:55:50) at /home/jonik/node_modules/daikin-controller-cloud/example/tokensaver.js:80:12 at Object. (/home/jonik/node_modules/daikin-controller-cloud/example/tokensaver.js:81:4) at Module._compile (node:internal/modules/cjs/loader:1099:14)

Apollon77 commented 1 year ago

Ok for that one try to install lib from GitHub

mjonik commented 1 year ago

same errors. I tried both ways.

Apollon77 commented 1 year ago

Then I need to look into it

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] commented 1 year ago

This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions. Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. Vielen Dank für Eure Unterstützung.

Apollon77 commented 10 months ago

duplicate (retries) #97

Apollon77 commented 10 months ago

For invalid SAML ... I can not reproduce