Hey team, I'm trying to alter an additional Reques...
# ask-a-descoper
s
Hey team, I'm trying to alter an additional Request Param on my Slack Outbound App to add some
user_scope
and I am getting a
400
error. I already have the following: Key:
user_scope
Value:
channels:history channels:read chat:write files:read files:write groups:history groups:read im:history im:read im:write mpim:history mpim:read mpim:write search:read team:read users.profile:read users.profile:write users:read users:read.email
I'm simply trying to add
reactions:read reactions:write
at the end of this string. Here is the error message from the console
Copy code
Object { message: "Request failed with status code 400", name: "AxiosError", code: "ERR_BAD_REQUEST", config: {…}, request: XMLHttpRequest, response: {…}, status: 400, stack: "", … }

code: "ERR_BAD_REQUEST"

config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }

message: "Request failed with status code 400"

name: "AxiosError"

request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: true, … }

response: Object { data: "Bad Request\n", status: 400, statusText: "", … }

stack: "Te@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:798809\nm@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:803089\nEventHandlerNonNull*71083/Ue</<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:803348\n71083/Ue<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:802677\nlt@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:809794\n_request@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:812895\nrequest@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:811175\n71083/</t/<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:813363\n71083/i/<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:781884\nm@https://app.descope.com/console-app.aec8a5f2de8dac47625a.js:2:477824\nm@https://app.descope.com/console-app.aec8a5f2de8dac47625a.js:2:528248\nmutationFn@https://app.descope.com/console-app.aec8a5f2de8dac47625a.js:2:528749\nfn@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:91376\ny@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:194045\nstart@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:194527\nexecute@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:92027\nasync*mutate@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:178:165470\n57201/Rb/onSubmit/<@https://app.descope.com/console-app.aec8a5f2de8dac47625a.js:2:842028\n46732/l/t<@https://app.descope.com/console-app.aec8a5f2de8dac47625a.js:2:475923\nonSubmit@https://app.descope.com/console-app.aec8a5f2de8dac47625a.js:2:842000\n41168/Le/Y<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:188525\n41168/Ge/<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:191397\n41168/Le/q</<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:187882\npromise callback*41168/Le/q<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:187780\n41168/Ge/<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:191397\n41168/Le/H<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:188279\n41168/Ge/<@https://app.descope.com/console-app.826b92b07fdbf0f9f0d4.js:128:191397\nonClick@https://app.descope.com/console-app.aec8a5f2de8dac47625a.js:2:843846\nRe@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:20598\nBe@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:20752\n22551/Ir/<@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:40613\nIr@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:40707\nUr@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:41122\n22551/Qr/<@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:46550\ncs@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:109669\nLe@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:19731\nQr@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:42407\nqn@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:26826\n$n@https://app.descope.com/console-app.5cebec4398941778f8a6.js:2:26608\n"
t
Hey, are you using an sdk or calling directly with https request? Also are you getting this error when trying to update from the Descope console?
Oh I see that the stack trace is from the console, correct?
s
Hey, I doing it directly through the Descope console. The logs are from the browser console
t
Ok thanks for clarifying. We will check that internally and update.
s
Thank you very much!
t
Hey @Sebastião Assunção, From what i see it's related to some limitations we enforce in our servers (254 chars in that case). It means that replacing some of the existing scopes will work but adding more to the current will not. are you currently blocked by it? I'll make sure it will be fixed for our next release early next week
s
I'm not fully blocked, it's okay to wait for the next release! Thank you for the assistance
t
Thanks, i'll keep you posted 🙌
✅ 1
🙌 1
Hi @Sebastião Assunção, issue is now resolved 🙏
s
It's working! Thank you very much
✅ 1