cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Build Code Joule 403 in Trial Account

MichaelR
Explorer

I was trying out this tutorial https://developers.sap.com/tutorials/build-code-test-drive.html#61b6d7a8-81b6-42b5-9342-dd7cb06c312d for Build Code with a Trial Account but when I entered the prompt into Joule I got Error: Request failed with status code 403. How can I solve this?

MichaelR_0-1711651597432.png

 

Accepted Solutions (0)

Answers (3)

Answers (3)

frankmeertens
Explorer
0 Kudos

The 403 error no longer appears when clearing all browser data. 

  • Clear all browser data
  • Log back into your account and navigate to SAP Build Code
  • Now the Joule prompting works and generates the data model code.
MichaelR
Explorer
0 Kudos
Unfortunately, this didn't work for me.
frankmeertens
Explorer
0 Kudos

Getting the same error.

"Request failed with status code 403"

Below is the Joule output.

{

"label": "Joule.Joule_Genie",

"level": "error",

"message": {

"message": "Request failed with status code 403",

"name": "AxiosError",

"stack": "AxiosError: Request failed with status code 403\n\tat settle (/managed-content/vscode/unzipped/38__@ext-lcapvsc-npm-vscode__joule@1.26.0-3/extension/out/extension.js:12081:16)\n\tat IncomingMessage.handleStreamEnd (/managed-content/vscode/unzipped/38__@ext-lcapvsc-npm-vscode__joule@1.26.0-3/extension/out/extension.js:12886:15)\n\tat IncomingMessage.emit (node:events:526:35)\n\tat endReadableNT (node:internal/streams/readable:1359:12)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:82:21)",

"config": {

"transitional": {

"silentJSONParsing": true,

"forcedJSONParsing": true,

"clarifyTimeoutError": false

},

"adapter": [

"xhr",

"http"

],

"transformRequest": [

null

],

"transformResponse": [

null

],

"timeout": 0,

"xsrfCookieName": "XSRF-TOKEN",

"xsrfHeaderName": "X-XSRF-TOKEN",

"maxContentLength": -1,

"maxBodyLength": -1,

"env": {},

"headers": {

"Accept": "application/json, text/plain, */*",

"Content-Type": "application/json",

"AI-Resource-Group": "default",

"User-Agent": "axios/1.6.0",

"Accept-Encoding": "gzip, compress, deflate, br"

},

"method": "get",

"url": "https://<replaced my trial account>.us10cf.trial.applicationstudio.cloud.sap/llm/v2/lm/deployments"

},

"code": "ERR_BAD_REQUEST",

"status": 403

},

"time": "2024-03-30T00:03:32.474Z"

}

{

"label": "Joule.Joule_Genie",

"level": "error",

"message": {},

"time": "2024-03-30T00:03:32.476Z"

}
yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

@MichaelRAs I see your prompt message is too long and unable to read in generic statement. could you repharse and try it.

MichaelR
Explorer
0 Kudos
I tried a smaller prompt and still got the same error.
frankmeertens
Explorer
0 Kudos
I am experiencing the same problem. Error: Request failed with status code 403