stack icon indicating copy to clipboard operation
stack copied to clipboard

[BUG] Uncaught StackAssertionError: Failed to send request: 500 Something went wrong

Open Ariastarcos opened this issue 8 months ago • 5 comments

Uncaught StackAssertionError: Failed to send request to https://api.stack-auth.com/api/v1/connected-accounts/me/discord/access-token: 500 Something went wrong. Please make sure the data you entered is correct.

Request ID: 9at6q31rz7k23mse

This is likely an error in Stack. Please make sure you are running the newest version and report it.

It happens for useConnectedAccount('discord');, as we need the access token for fetching the Discord user and their servers, channels, etc. for Dashboard personalization.

    at rl.sendClientRequestInner (7482-8d5a29883d306515.js:25:4164)
    at async Object.h [as retry] (7482-8d5a29883d306515.js:78:201)
    at async rl._networkRetry (7482-8d5a29883d306515.js:25:51)
    at async rl.sendClientRequest (7482-8d5a29883d306515.js:25:1563)
    at async rl.createProviderAccessToken (7482-8d5a29883d306515.js:25:17985)
    at async 7482-8d5a29883d306515.js:64:1539
    at async 7482-8d5a29883d306515.js:52:3247
    at async Object.l [as fromThrowingAsync] (7482-8d5a29883d306515.js:68:58772)
    at async c._fetcher (7482-8d5a29883d306515.js:52:3210)
    at async l (7482-8d5a29883d306515.js:28:10581)
    at async Object.o [as fromPromise] (7482-8d5a29883d306515.js:68:58622)
    at async n (7482-8d5a29883d306515.js:3:689)
    at async 7482-8d5a29883d306515.js:3:871
    at c (7482-8d5a29883d306515.js:25:49274)
    at P (7482-8d5a29883d306515.js:52:4583)
    at Object.useConnectedAccount (7482-8d5a29883d306515.js:68:11877)
    at H (page-159bedecc3d2bf73.js:1:20182)
    at lS (b861a5d2-9d5404875231840d.js:1:39316)
    at ot (b861a5d2-9d5404875231840d.js:1:64562)
    at ov (b861a5d2-9d5404875231840d.js:1:74713)
    at ic (b861a5d2-9d5404875231840d.js:1:112357)
    at b861a5d2-9d5404875231840d.js:1:108530
    at b861a5d2-9d5404875231840d.js:1:108537
    at u9 (b861a5d2-9d5404875231840d.js:1:108634)
    at ij (b861a5d2-9d5404875231840d.js:1:129868)
    at MessagePort.M (5990-71877f19f724735f.js:2:100807)

Please let me know what information I can provide to help with debugging :)

Ariastarcos avatar Apr 16 '25 13:04 Ariastarcos

Our SaaS has become quite unusable as a result of this, we are hoping for resolution soon. The Stack Auth API appears to have crashed/gone-offline multiple times since reporting this.

Ariastarcos avatar Apr 16 '25 15:04 Ariastarcos

Looking into this right now

fomalhautb avatar Apr 16 '25 17:04 fomalhautb

Did you pass in extra scopes somewhere?

fomalhautb avatar Apr 16 '25 18:04 fomalhautb

I am having the same issue: Request ID: kbv91p2hc2me862z

I have the following scopes: scopes: ["https://www.googleapis.com/auth/business.manage"]

kylewhirl avatar Apr 21 '25 19:04 kylewhirl

yo actualice las dependencias de npm install y me salio este error Error: Failed to send request to https://app.stack-auth.com/api/v1/projects/78ef290b-6651-43ea-8ce6-70c640c6bc68: 400 {"error":"You attempted to access /api on the Stack Auth dashboard URL, instead of the API URL. Did you mean to access https://api.stack-auth.com/api instead (with an I instead of a P)?\n\nFor more guidance, please join our Discord server for assistance: https://discord.stack-auth.com"}

jesusabri-code avatar Apr 27 '25 22:04 jesusabri-code