Base solution for your next web application
Open Closed

After upgrade 12 to 13.4 . Angular app error on Azure deployment #12203


User avatar
0
pliaspzero created

Hi,

we updated from V 12 to 13.4 - when we deploy the Angular app on Azure as Web App in App Service - we get following error -

could you help us out wsith that?

ERROR SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data onreadystatechange https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 X https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 invokeTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 onInvokeTask https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 invokeTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 runTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 invokeTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Ct https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Ft https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Ht https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Xt https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 onScheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleEventTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 H https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 set https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 ajax https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 getServerStatus https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 run https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 getApplicationConfig https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 onreadystatechange https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 X https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 invokeTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 onInvokeTask https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 invokeTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 runTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 invokeTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Ct https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Ft https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Ht https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Xt https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 onScheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleEventTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 H https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 set https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 ajax https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 getApplicationConfig https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 run https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 ot https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 Mt https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 ot https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 runInitializers https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 kD https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 Wx https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 kD https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 invoke https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 onInvoke https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 invoke https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 run https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 run https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 ED https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 bootstrapModuleFactory https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 kD https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 invoke https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 run https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 D https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 invokeTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 runTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 tr https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 promise callback*Ft https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 Ht https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 scheduleMicroTask https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 D https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 then https://pliapp.pliwfm.one/polyfills.ce1ab5650c81c793.js:1 setDriver https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 oi https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 40119/qi.exports<[4]< https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 X https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 s https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 40119 https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 e https://pliapp.pliwfm.one/runtime.467daad61cfa9a73.js:1 47674 https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 e https://pliapp.pliwfm.one/runtime.467daad61cfa9a73.js:1 89440 https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 e https://pliapp.pliwfm.one/runtime.467daad61cfa9a73.js:1 14675 https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 e https://pliapp.pliwfm.one/runtime.467daad61cfa9a73.js:1 <anonymous> https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1 c https://pliapp.pliwfm.one/runtime.467daad61cfa9a73.js:1 <anonymous> https://pliapp.pliwfm.one/main.9542f11b88ad6a71.js:1


5 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @pliaspzero,

    I can't understand this error. Could you determine this error in more detail?

    With code block
    

    Also, could you tell me which class you encountered this error

  • User Avatar
    0
    pliaspzero created

    When you open https://pliapp.pliwfm.one and run Dev Tools F12 - you see it in more detail

  • User Avatar
    0
    pliaspzero created

    ...and this is the backend https://pliapi.pliwfm.one UI - https://pliapi.pliwfm.one/Ui/Login looks a bit "strange" - seems CSS issue

  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @pliaspzero,

    Could you run npm run create-bundles command in the host project? This will solve the backend issue.

    For Angular issue, If you want you can enable health checks from the host project. Or just change angular/src/AppPreBootstrap.ts like below.

    from/health

    to /AbpUserConfiguration/GetAll

  • User Avatar
    0
    pliaspzero created

    thanks