cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error when deploying Fiori app from VS code -Unexpected token '<', "<!DOCTYPE "... is not valid JSO

TRN1
Explorer
0 Kudos
1,672

Hi Experts,

I am trying to deploy SAP UI5 Fiori application from VS code to ABAP on-premise system. I installed all the extensions needed in VS code to create a Fiori application and was able to preview the application in the local host. When it comes to deployment to the backend system, I get the below error when running the command 'npm run deploy' and deployment fails.  

error abap-deploy-task ZDFGT Deployment has failed.
error abap-deploy-task ZDFGT Change logging level to debug your issue
error abap-deploy-task ZDFGT (see examples https://github.com/SAP/open-ux-tools/tree/main/packages/deploy-tooling#configuration-with-logging-en...)
error builder:custom deploy-to-abap Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Command deploy failed with error : Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Any suggestions to resolve this error please?

Thank you for your help in advance!

Accepted Solutions (0)

Answers (4)

Answers (4)

junwu
SAP Champion
SAP Champion
0 Kudos

https://www.npmjs.com/package/nwabap-ui5uploader

your server is too old, probably not supported by fiori tool regarding deployment

use that node js module to do the deployment

TRN1
Explorer
0 Kudos
There was some issue with my server. Basis corrected it and this error is gone. Still working on the other errors during deployment. Thank you for your answer! Appreciate it!
TRN1
Explorer
0 Kudos

I do not get any other error. We have SAP_ABA 750 and SAP_UI 754.

TRN1_0-1733851583602.png

 

 

Dinu
Active Contributor
0 Kudos

The error '<', "<!DOCTYPE "... is not valid JSON has high probability of being an authentication issue. The ABAP system is responding with HTML, possibly for signing in to the request to deploy. 

TRN1
Explorer
Initially I got the certificate error. Then, I used "ignoreCertError: true" in the UI5-deploy.yaml file and got rid of the certification error.
junwu
SAP Champion
SAP Champion
0 Kudos

do what it asked.

error abap-deploy-task ZDFGT Change logging level to debug your issue

TRN1
Explorer
0 Kudos
I changed the logging level and it asked me to activate /UI5/ABAP_REPOSITORY_SRV service. I did that but still I get the same error.
junwu
SAP Champion
SAP Champion
0 Kudos
no more new error? what is your abap server version?
TRN1
Explorer
0 Kudos
I do not get any other error.
TRN1
Explorer
0 Kudos
We have SAP_ABA 750 and SAP_UI 754..