Describe the problem/error/question
I am experiencing an issue with n8n and scheduled tasks. In about 2 or 3 hours after I connect with OAuth2 in microsoft Azure I get the error “Authorization failed - please check your credentials” so I need to manually reconnect again. Is there a way to connect automatically or to not be kicked by OAuth2?
What is the error message (if any)?
“Authorization failed - please check your credentials”
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
{
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"triggerAtMinute": 1
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
-280,
500
],
"id": "2fc8f309-bebc-41d0-929c-210eddf62d70",
"name": "Schedule Trigger"
},
{
"parameters": {
"url": "https://api.powerbi.com/v1.0/myorg/groups/f80301c2-8735-40d2-8662-1f8a627d3f61/reports/ecd4794b-5537-40eb-a74f-0110ed67b177",
"authentication": "genericCredentialType",
"genericAuthType": "oAuth2Api",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-60,
500
],
"id": "b845da6e-f31f-4bee-b9ed-00479f9085ed",
"name": "Pegar informacoes",
"credentials": {
"oAuth2Api": {
"id": "3REHo8pRRbveOAaH",
"name": "Oauth2"
}
}
}
],
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Pegar informacoes",
"type": "main",
"index": 0
}
]
]
},
"Pegar informacoes": {
"main": [
[]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "ec27fb0742649debf080921837c1c92406759dc0a77bdca88e9f6596faef453e"
}
}
## Share the output returned by the last node
<!-- If you need help with data transformations, please also share your expected output. -->
## Information on your n8n setup
- **n8n version:*1.98,1*
- **Database (default: SQLite):*Postgre*
- **n8n EXECUTIONS_PROCESS setting (default: own, main):*own, main*
- **Running n8n via (Docker, npm, n8n cloud, desktop app):*Docker*
- **Operating system:*Linux*