Comments (15)
Thanks for your reply. no there are no warning. i also did the client secret key generation just in case this was my error before commenting on this issue.
from mmm-microsofttodo.
i have the same error. I think MS changed something on their side
from mmm-microsofttodo.
Same here :)
from mmm-microsofttodo.
Could you check that your client secret hasn't expired? E.g. are there any warnings displayed at https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade in the column "Certificates & Secrets?
If yes, you'll need to recreate steps https://github.com/thobach/MMM-MicrosoftToDo/tree/master#client-secret-key-generation-client-secret and following.
from mmm-microsofttodo.
I also did a client refresh. I will note that after a system reboot, things simply started working (which is quite odd). If this is some intermittent API issue, that is concerning because it will be hard to impossible to track.
I also checked PiHole and that is not black holing anything as far as I can tell.
from mmm-microsofttodo.
I also did a client refresh. I will note that after a system reboot, things simply started working (which is quite odd). If this is some intermittent API issue, that is concerning because it will be hard to impossible to track.
I also checked PiHole and that is not black holing anything as far as I can tell.
So it's working for you now? Reboot didn't helped me.
from mmm-microsofttodo.
Same error here,
secret is fine :
the error in the log :
[19.02.2024 21:33.44.756] [ERROR] [MMM-MicrosoftToDo]: Error: checkFetchStatus failed with status 'Bad Request' {}
[19.02.2024 21:33.49.747] [ERROR] Response {
[Symbol(realm)]: null,
[Symbol(state)]: {
aborted: false,
rangeRequested: false,
timingAllowPassed: true,
requestIncludesCredentials: true,
type: 'default',
status: 400,
timingInfo: {
startTime: 286093.82363300025,
redirectStartTime: 0,
redirectEndTime: 0,
postRedirectStartTime: 286093.82363300025,
finalServiceWorkerStartTime: 0,
finalNetworkResponseStartTime: 0,
finalNetworkRequestStartTime: 0,
endTime: 0,
encodedBodySize: 510,
decodedBodySize: 510,
finalConnectionTimingInfo: null
},
cacheState: '',
statusText: 'Bad Request',
headersList: HeadersList {
cookies: [Array],
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
urlList: [ [URL] ],
body: { stream: undefined }
},
[Symbol(headers)]: HeadersList {
cookies: [
'fpc=AtPayNFgvpZEomUBbZIIgowE0nTeAQAAACyyZd0OAAAA; expires=Wed, 20-Mar-2024 20:33:49 GMT; path=/; secure; HttpOnly; SameSite=None',
'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly',
'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly'
],
[Symbol(headers map)]: Map(13) {
'cache-control' => [Object],
'pragma' => [Object],
'content-type' => [Object],
'expires' => [Object],
'strict-transport-security' => [Object],
'x-content-type-options' => [Object],
'p3p' => [Object],
'x-ms-request-id' => [Object],
'x-ms-ests-server' => [Object],
'x-xss-protection' => [Object],
'set-cookie' => [Object],
'date' => [Object],
'content-length' => [Object]
},
[Symbol(headers map sorted)]: null
}
}
from mmm-microsofttodo.
I'm getting the same error. secret is fine for me.. Anybody figure out how to fix this?
from mmm-microsofttodo.
I'm getting the same error as well.
from mmm-microsofttodo.
Getting the same issue here, secret is fine, tried regenerating the token and still not working
from mmm-microsofttodo.
I'm running into the same issue.. I just realized that nothing has been updating on the board and it looks like its been happening for a while. I also noticed that I've been getting emails almost every other day about a single-use code from Microsoft and they date back to when I started seeing the bad request errors in my pm2 logs. I went back to reauth this entire thing and notice that when you follow the step to get the code
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&client_id=4ef19f40-4892-.&scope=offline_access%20user.read%20tasks.readwrite%20tasks.read&redirect_uri=https://localhost:1234&response_mode=query&state=12345
you get the following error
{"error":"invalid_grant","error_description":"AADSTS70000: The provided value for the 'code' parameter is not valid.
which didn't happen the last time.
from mmm-microsofttodo.
I managed to get this to work. I had to go back and regenerate a new code, then get a new refreshtoken for it. Once I did that I was able to make it work.
from mmm-microsofttodo.
I managed to get this to work. I had to go back and regenerate a new code, then get a new refreshtoken for it. Once I did that I was able to make it work.
What code did you regenerate?
from mmm-microsofttodo.
You have to go back to the instructions and regenerate an app code and then get a new refresh token. If you curl your auth you will most likely get a bad request due to a code value being wrong. The app codes have a time out that is shorter than the client secret. It took me a while to figure that.
use this with your client id and make sure your redirect URL that you have in Azure matches.
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&client_id=4ef19f40-4892-4905-b999-76041e991f53&scope=offline_access%20user.read%20tasks.readwrite%20tasks.read&redirect_uri=https://localhost:1234&response_mode=query&state=12345
from mmm-microsofttodo.
I just tried on the latest version of magic mirror (v2.27.0) also with a newly generated app and it still works fine for me.
Does anyone have some server and client logs to help me troubleshoot the issue?
What kind of azure account do you use? A personal one without a dedicated directory?
For most users it seems to work to regenerate the app with client id, secret and refresh token in the azure portal and use these new parameters in the config file.
from mmm-microsofttodo.
Related Issues (20)
- Support to view My Day?
- Step support? HOT 1
- Black Screen HOT 2
- Error: Cannot find module 'node-fetch' HOT 4
- does it work on MagicMirror2? HOT 1
- Is there a way to not include overdue tasks?
- "Failed to load swrast driver" HOT 1
- Not linked to account. HOT 2
- Problems with instructions / authorization code generation (code) HOT 1
- Not showing tasks HOT 7
- Refresh Token Didn't Show Full Number HOT 1
- Not Connecting to Correct File Path
- MMM-MicrosoftToDo - Fails / crashes with bad request HOT 1
- Due Date always shows the same time HOT 1
- Instructions are outdated HOT 6
- replaceAll is not a function HOT 1
- Bad Request HOT 7
- Shopping list? HOT 2
- Does it support "Important" in ToDo? HOT 2
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 mmm-microsofttodo.