Skip to content
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

AxiosError: 403 #21

Open
bloop16 opened this issue Aug 22, 2024 · 2 comments
Open

AxiosError: 403 #21

bloop16 opened this issue Aug 22, 2024 · 2 comments

Comments

@bloop16
Copy link

bloop16 commented Aug 22, 2024

Hello,

Since restarting the Adapter im not able to get it green anymore.
Always getting the same error:

bosch-ebike.0 | 2024-08-22 20:32:38.267 | error | Could not extract form data
-- | -- | -- | --
bosch-ebike.0 | 2024-08-22 20:32:38.267 | error | "<!doctype html><html><head><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"/><meta name=\"description\" content=\"Azure WAF JS Challenge\"/><title>Azure WAF</title><style>html *{font-family:\"Segoe UI\",SegoeUI,\"Helvetica Neue\",Helvetica,Arial,sans-serif}body{display:flex;flex-direction:column;height:100vh;width:100vw;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){body{background-color:#252525;color:#fff}}@media (prefers-color-scheme:light){body{background-color:#fff;color:#252525}}#header{height:10%}#main{display:flex;flex:1;flex-direction:column;justify-content:flex-start}#azure-ref{padding-left:3px;font-size:9px;color:#7a7a7a}h3{font-size:19px;margin-bottom:0}.error-div{height:100%;width:100%;display:flex;flex-direction:column;align-items:center}.ms-logo-container{padding-top:17px}.ms-logo-svg{width:99px;height:22px}@media only screen and (max-width:768px){h3{font-size:15px;margin-bottom:0}}@media only screen and (max-width:480px){body{min-width:300px}h3{font-size:12px;margin-bottom:0}}</style></head><body><svg style=\"display:none\" version=\"2.0\"><defs><symbol id=\"ms-logo\"><g fill=\"none\" fill-rule=\"evenodd\"><path d=\"m34.64 12.07-.58 1.65h-.04c-.1-.39-.28-.93-.56-1.63l-3.14-7.9h-3.08v12.56h2.03V9.03l-.03-1.7c-.01-.34-.05-.6-.06-.81h.05c.1.47.2.83.28 1.07l3.78 9.16h1.42l3.75-9.24c.08-.21.17-.62.25-1h.05c-.05.92-.1 1.76-.1 2.26v7.98h2.17V4.2h-2.96l-3.23 7.88z\" fill=\"#737474\"></path><path d=\"M0 20.96h98.15V0H0z\"></path><path fill=\"#737474\" d=\"M42.87 16.75h2.11v-9h-2.11zm1.08-12.82c-.35 0-.66.12-.9.35a1.17 1.17 0 0 0-.38.88c0 .35.12.64.37.87.25.23.55.34.9.34s.67-.11.92-.34c.25-.23.38-.52.38-.86 0-.34-.13-.64-.37-.88a1.26 1.26 0 0 0-.92-.36m8.53 3.73a5.9 5.9 0 0 0-1.19-.12c-.97 0-1.83.2-2.57.62-.74.4-1.3 1-1.7 1.74a5.57 5.57 0 0 0-.01 4.9c.37.7.9 1.23 1.58 1.6.67.38 1.45.57 2.31.57 1.01 0 1.87-.2 2.56-.6l.03-.02v-1.94l-.1.07c-.3.23-.65.4-1.03.54a3.12 3.12 0 0 1-1.01.2c-.83 0-1.5-.26-1.98-.78a3 3 0 0 1-.73-2.14c0-.9.25-1.65.76-2.2a2.6 2.6 0 0 1 1.98-.81c.7 0 1.38.23 2.02.7l.09.06V8.01L53.46 8a3.5 3.5 0 0 0-.98-.33m6.97-.06a2.17 2.17 0 0 0-1.41.5c-.36.3-.62.7-.82 1.21h-.02V7.75h-2.12v9h2.12v-4.6c0-.78.18-1.43.53-1.91.34-.48.8-.73 1.37-.73a2.5 2.5 0 0 1 1.13.3l.09.06V7.74l-.04-.02c-.2-.08-.47-.12-.83-.12m7.44 6.87c-.4.5-1 .75-1.78.75s-1.4-.26-1.83-.77a3.25 3.25 0 0 1-.65-2.16c0-.96.22-1.7.65-2.22a2.24 2.24 0 0 1 1.8-.78c.75 0 1.34.25 1.77.74.42.5.64 1.24.64 2.2 0 .98-.2 1.73-.6 2.23M65.2 7.54a4.7 4.7 0 0 0-3.5 1.29 4.84 4.84 0 0 0-1.27 3.53c0 1.4.42 2.54 1.24 3.36a4.48 4.48 0 0 0 3.31 1.25c1.44 0 2.6-.44 3.44-1.31a4.84 4.84 0 0 0 1.26-3.5c0-1.43-.4-2.57-1.18-3.39a4.38 4.38 0 0 0-3.3-1.23m9.18 3.93a4.6 4.6 0 0 1-1.27-.66.93.93 0 0 1-.26-.7c0-.25.1-.46.33-.63.22-.17.52-.26.9-.26a3.74 3.74 0 0 1 2.04.6l.1.07V7.93l-.04-.02a4.71 4.71 0 0 0-.97-.26 5.93 5.93 0 0 0-1.05-.11c-1.01 0-1.85.25-2.49.76a2.45 2.45 0 0 0-.96 2c0 .42.07.8.2 1.12.15.32.36.6.65.83.28.24.72.48 1.3.73.49.2.85.37 1.08.5.23.14.39.27.48.4.09.12.13.3.13.5 0 .61-.45.9-1.38.9a3.8 3.8 0 0 1-1.17-.2 4.42 4.42 0 0 1-1.2-.62l-.1-.06v2.06l.04.02a6.02 6.02 0 0 0 2.35.5c1.1-.01 1.98-.27 2.62-.78.65-.52.98-1.2.98-2.05 0-.6-.18-1.12-.53-1.54-.34-.42-.94-.8-1.78-1.14m9.68 3c-.4.5-1 .75-1.78.75-.77 0-1.39-.26-1.82-.77a3.25 3.25 0 0 1-.65-2.16c0-.96.22-1.7.65-2.22a2.24 2.24 0 0 1 1.8-.78c.75 0 1.34.25 1.76.74.43.5.65 1.24.65 2.2 0 .98-.2 1.73-.6 2.23m-1.69-6.92a4.7 4.7 0 0 0-3.5 1.29 4.84 4.84 0 0 0-1.27 3.53c0 1.4.42 2.54 1.24 3.36a4.48 4.48 0 0 0 3.31 1.25c1.44 0 2.6-.44 3.44-1.31a4.84 4.84 0 0 0 1.26-3.5c0-1.43-.4-2.57-1.19-3.39a4.38 4.38 0 0 0-3.29-1.23m15.77 1.94V7.75H96V5.07l-.07.02-2.01.62h-.04v2.04H90.7V6.62c0-.53.12-.93.35-1.2.23-.27.56-.4.99-.4.3 0 .61.07.93.21l.08.04V3.45L93 3.43c-.3-.1-.7-.15-1.2-.15-.62 0-1.19.13-1.68.4-.5.27-.89.66-1.16 1.15a3.41 3.41 0 0 0-.41 1.68v1.24h-1.5v1.73h1.5v7.27h2.14V9.48h3.18v4.62c0 1.9.9 2.87 2.67 2.87a4.36 4.36 0 0 0 1.57-.31l.03-.02V14.9l-.09.06c-.12.07-.26.14-.43.18-.17.05-.31.08-.42.08-.42 0-.73-.12-.92-.34-.19-.22-.29-.6-.29-1.15V9.48h2.15z\"></path><path fill=\"#F05124\" d=\"M0 9.96h9.96V0H0z\"></path><path fill=\"#7EBB42\" d=\"M11 9.96h9.95V0H11z\"></path><path fill=\"#32A0DA\" d=\"M0 20.96h9.96V11H0z\"></path><path fill=\"#FDB813\" d=\"M11 20.96h9.95V11H11z\"></path></g></symbol></defs></svg><div id=\"header\"></div><div id=\"main\"><noscript><div id=\"no-js-error\" class=\"error-div\"><h3 lang=\"en\">Please enable JavaScript to run this application.</h3><div class=\"ms-logo-container\"><svg class=\"ms-logo-svg\" xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#ms-logo\"/></svg></div></div></noscript><script>window.onerror=function(e){document.getElementById(\"js-error\").style.display=\"flex\"}</script><script>!function(){var e=document.createElement(\"script\");e.setAttribute(\"src\",\"/appgwazwaf/jsc/challenge.23f858e0b770cc479d3b.js\"),document.head.appendChild(e)}()</script><div id=\"js-error\" class=\"error-div\" style=\"display:none\"><h3 id=\"unexpected-error-text\" lang=\"en\">An unexpected error occured.</h3><div class=\"ms-logo-container\"><svg class=\"ms-logo-svg\" xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#ms-logo\"/></svg></div></div><div id=\"react-root\"></div><script>window.randomNumber=([!+[]+!+[]]+[])+([!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+[])+(+[]+[])+([+!+[]]+[])+(+!![]+[])+(!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!![]+!![]+!![]+!![]+!![]+[])+(!![]+!![]+!![]+!![]+!![]+!![]+[])+(!![]+!![]+!![]+!![]+[])+([!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+[]),window.memoryConsumptionKBytes=(!![]+!![]+[])+([!+[]+!+[]+!+[]+!+[]+!+[]]+[])+([!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+[]),window.cpuTimeMS=([+!+[]]+[])+([+[]]+[])+([+[]]+[])+([+[]]+[]),window.azureRef=\"Microsoft Azure Application Gateway WAF\",window.postbackUrlQueryParam1Key=\"appgw_azwaf_jsc\",window.postbackUrlQueryParam1Value=\"5w_Ol91arRcsVIdiDvF8NJCGU4poMnqnpRhcnBXJ1go\",window.postbackFieldDatapayloadName=\"appgw_azwaf_jscdata\",window.postbackFieldDatapayloadValue=\"MTM2NQ&bWV0aG9k=R0VU&dXJp=L2F1dGgvY29ubmVjdC9hdXRob3JpemU_c2NvcGU9b3BlbmlkK2VtYWlsK3Byb2ZpbGUrb2ZmbGluZV9hY2Nlc3Mmc3RhdGU9ekpZOXNneWVid2JhelZ5MWRsaWVmZHIxOFVFV0pXdFY2U3RCeXRsN0dsby50SmZKQV9QX1Jray5GMzB6XzV1bFF5aWp4NFJQMW1PVi1BJnJlc3BvbnNlX3R5cGU9Y29kZSZjbGllbnRfaWQ9RDZBOTRFRjQtOTk3RS00RjAyLTlFRTQtQzVDRUNEMzMzRUY0JnJlZGlyZWN0X3VyaT1odHRwcyUzQSUyRiUyRnA5LmF1dGh6LmJvc2NoLmNvbSUyRmF1dGglMkZyZWFsbXMlMkZvYmMlMkZicm9rZXIlMkZza2lkJTJGZW5kcG9pbnQmcHJvbXB0PWxvZ2luJmNvZGVfY2hhbGxlbmdlPVZFZlEwT3lLMnZQVG9vUkFiWXhhUEhvNzFWUGFwblZPeWJlOEsyOWlTaEUmY29kZV9jaGFsbGVuZ2VfbWV0aG9kPVMyNTYmbm9uY2U9eVc4Q2ZLUkV1QWlkUUpTNVNhYW5nZw&QWNjZXB0=dGV4dC9odG1sLGFwcGxpY2F0aW9uL3hodG1sK3htbCxhcHBsaWNhdGlvbi94bWw7cT0wLjksKi8qO3E9MC44&QWN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ZzvGQEqk3W-AeyKVkJvIQv-4\",window.postbackFieldChallengeanswerName=\"appgw_azwaf_jsanswer\",window.specialRoute=\"appgwazwaf/jsc\",window.devRandomNumberIntActual=\"DV_DEV_RANDOM_NUMBER_INT_ACTUAL\",window.devRandomNumberStringEsolang=\"DV_DEV_RANDOM_NUMBER_STRING_ESOLANG\",window.devExpectedChallengeAnswer=\"DV_DEV_EXPECTED_CHALLENGE_ANSWER\"</script></div><div id=\"footer\"><span id=\"azure-ref\">Microsoft Azure Application Gateway WAF</span></div></body></html>"
bosch-ebike.0 | 2024-08-22 20:32:38.266 | error | AxiosError: Request failed with status code 403

Adapter Version 0.1.7
Admin 7.0.23
Nodejs 20.16
NPM 10.8.1

Thanks for helping

@lurefix
Copy link

lurefix commented Aug 25, 2024

Hi,

I have the same problem.

After an update from admin or js-controller ( I don't know it exactly) it isn't possible to run the bosch ebike adapter:

host.Prox-ioBroker | 2024-08-25 11:38:00.447 | info | instance system.adapter.bosch-ebike.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
host.Prox-ioBroker | 2024-08-25 11:37:59.894 | info | stopInstance system.adapter.bosch-ebike.0 send kill signal
bosch-ebike.0 | 2024-08-25 11:37:59.837 | info | Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
bosch-ebike.0 | 2024-08-25 11:37:59.837 | debug | Plugin sentry destroyed
bosch-ebike.0 | 2024-08-25 11:37:59.837 | info | terminating
bosch-ebike.0 | 2024-08-25 11:37:59.836 | info | Got terminate signal TERMINATE_YOURSELF
host.Prox-ioBroker | 2024-08-25 11:37:59.834 | info | stopInstance system.adapter.bosch-ebike.0 (force=false, process=true)
host.Prox-ioBroker | 2024-08-25 11:37:59.833 | info | "system.adapter.bosch-ebike.0" disabled
bosch-ebike.0 | 2024-08-25 11:37:49.287 | error | {"error":"invalid_request","error_description":"Missing parameter: code"}
bosch-ebike.0 | 2024-08-25 11:37:49.286 | error | AxiosError: Request failed with status code 400
bosch-ebike.0 | 2024-08-25 11:37:46.296 | info | Login to eBike flow
bosch-ebike.0 | 2024-08-25 11:37:46.286 | info | starting. Version 0.1.7 in /opt/iobroker/node_modules/iobroker.bosch-ebike, node: v20.17.0, js-controller: 6.0.11

Adapter Version 0.1.7
Admin 7.0.24
Nodejs 20.17
NPM 10.8.2

Thanks in advance for yor support.

@lurefix
Copy link

lurefix commented Sep 3, 2024

Hi, it's me again,

today I updated the admin adapter to version 7.1.0.
Then I re-entered the login name and password for the bosch-ebike instance and restarted it.

The bosch-ebike instance is now running.

Only one warn message appears in the log:

admin.0 2024-09-03 13:55:24.233 warn bosch-ebike has an invalid jsonConfig: [{"instancePath":"","schemaPath":"#/then/required","keyword":"required","params":{"missingProperty":"type"},"message":"must have required property 'type'"}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants