- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 08:40 AM - edited 05-05-2025 09:11 AM
I am trying to build a custom component. Last week I was able to deploy to my instance and create new components without any issues. I came back to it today and am being hit with errors all related to "Cannot decode: java.io.stringreader". I first started running into the issue when trying to redeploy the component. I have also tried creating a new component from scratch just to try and get something to work but that is broken as well. I also uninstalled the cli and deleted the .snc folder and then reinstalled to see if that would fix anything but no luck.
snc ui-component deploy
10% building 0/1 entries 0/0 dependencies 0/0 modules 0 active(node:27124) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
(Use `node --trace-deprecation ...` to show where the warning was created)
94% sealing after sealThere are no TOML files to parse.
95% emitting emit EmitAssets(node:27124) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
Deploying component to https://instance.service-now.com...
Creating scope, x_594743_my_scope
Failed to deploy (Table Operation Failure: Table Operation CREATE Failure: Response code 500 (Internal Server Error) : Cannot decode: java.io.StringReader@f990a89 Check logs for error trace or enable glide.rest.debug property to verify REST request processing : Unable to deploy a component into instance)
Error: Table Operation Failure: Table Operation CREATE Failure: Response code 500 (Internal Server Error) : Cannot decode: java.io.StringReader@f990a89 Check logs for error trace or enable glide.rest.debug property to verify REST request processing : Unable to deploy a component into instance
at c (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:817390)
at C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:727751
at f (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:717488)
at Generator.<anonymous> (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:718830)
at Generator.throw (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:717917)
at l (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:724125)
at s (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:724364)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
PS C:\Users\name\Dev\SNowCustomComponent>
I then tried to create a new component just to see if I could get that to work but here is the error.
ui-component project --name <Comp name>
Failed to run project command (Table Operation CREATE Failure: Response code 400 (Bad Request) : Cannot decode: java.io.StringReader@4194bfba)
Error: Table Operation CREATE Failure: Response code 400 (Bad Request) : Cannot decode: java.io.StringReader@4194bfba
at c (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:817390)
at C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:759592
at f (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:752757)
at Generator.<anonymous> (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:754099)
at Generator.throw (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:753186)
at i (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:758660)
at c (C:\Users\name\.snc\.extensions\ui-component\node_modules\@servicenow\cli\dist\servicenow-cli.min.js:3:759797)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 10:51 AM - edited 05-05-2025 11:02 AM
Very frustrating issue but I fixed it using this solution. Only 5 hours later...
https://www.servicenow.com/community/servicenow-studio-forum/unable-to-create/m-p/3253901
Here is the fix copied from the post linked:
Resolution
1.On the affected instance, Navigate to System Definition > Scripts - Background.
2.Run the below scripts that resolves the issue.
- gs.setProperty("sn_appclient.upload_base_url","");
- gs.setProperty("sn_appauthor.upload_base_url","");
- gs.eventQueueScheduled("sn_appauthor.check.config.update","","","", 0);
Above solution references:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998906
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 10:51 AM - edited 05-05-2025 11:02 AM
Very frustrating issue but I fixed it using this solution. Only 5 hours later...
https://www.servicenow.com/community/servicenow-studio-forum/unable-to-create/m-p/3253901
Here is the fix copied from the post linked:
Resolution
1.On the affected instance, Navigate to System Definition > Scripts - Background.
2.Run the below scripts that resolves the issue.
- gs.setProperty("sn_appclient.upload_base_url","");
- gs.setProperty("sn_appauthor.upload_base_url","");
- gs.eventQueueScheduled("sn_appauthor.check.config.update","","","", 0);
Above solution references:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998906