cancel
Showing results for 
Search instead for 
Did you mean: 

Error : Sorry, a technical error occurred! Please try again later

Former Member
0 Kudos

Hi,

    I would  like  to create SAPUI5 / FIORI Application with OData , I need to Retrieve data from the Odata using SAPWebIDE.

Let us demonstrate step by step process :

  1. Create “SAP Fiori Worklist Application” , and choose service URL which I have already create Destination in HANA Account and I have got  the status as  Connection “Success”.

When I select OData (“Product”) , I got the Error as “Cannot parse the metadata file”.

  2. And I have saved the OData data as XML file and after that I tried to retrieve the Data In “Data Connection” part under the “File System” I have browse the XML file , I have  retrieved the data from OData.

  3. Then in Template Customization part

Finally, I am trying  to Run the application. And I got “sorry, a technical error occurred  ! please try again later” Error.

I have clicked the “show details” then the  below information is displayed,

{

                "requestUri": "/here/goes/your/serviceurl/$metadata?sap-documentation=heading",

                "statusCode": 404,

                "statusText": "Not Found",

                "headers": [],

                "body": "<html><head><title>Error report</title></head><body><h1>HTTP Status 404 - Not Found</h1></body></html>"

}

Please help me to rectify this error.

Accepted Solutions (0)

Answers (7)

Answers (7)

laeeqsiddique
Participant
0 Kudos

I'm trying to use Mock in my FLP deployed app and I'm getting the same problem. Is there a workaround we can use or have to have a real oData service to deploy it to FLP?

Your help would be appreciated.

Thanks,

Laeeq Siddique

gaurav_sharan
Explorer
0 Kudos

Hi,

Just add "/destination/<name>" before the datasource uri, in the manifest.json file. For example if name of destination is ES4.

Just add: /destinations/ES4/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/

It should solve issue.


Thanks

Gaurav

former_member187491
Active Participant
0 Kudos

Hi Selveraj,

I had the same issue and was lucky enough to fix it by comparing the new project to a previously created project with an earlier version on Web IDE.

As you can see in the attached screenshot, new version of WeIDE is failing to create “/destinations/<name_of_destination>”  for the datasource uri, in the manifest.json file.

See the 3rd difference indicated in the screenshot. Once I made that change my app worked fine.

Hope this helps.

Best,

Mustafa.

Former Member
0 Kudos

Hi Selvaraj,


  • As for the error you get after using the metadata from the filesystem:

          In your project you need to add the real service url in the manifest.json file under sap.app.datasources (in case of full url I think the url configured should be just /product and should correlate to the path in the neo-app.json file).


  • As for the error when using the service URL option, could you also attach the network log of the response when trying to get the metadata of your service. Also if you run the url configured in the destination in your browser do you get the service definition or the metadata?

Regards,

Guy

Former Member
0 Kudos

Hi,

    Thanks for your response Guy Blank , I am new to this , I tried what you have mentioned above that is "add the real service url in the manifest.json file under sap.app.datasources". i have mentioned full url in the manifest.json file . Please see that in below screen shot.

But , then also i am facing the same issue , I clicked "show details"  for that error, it shown me this

{

  "requestUri": "/https://s12hanaxs.hanatrial.ondemand.com/p1941903330trial/opensap/myproducts/services.xsodata/Produc...",

  "statusCode": 404,

  "statusText": "Not Found",

  "headers": [],

  "body": "<html><head><title>Error report</title></head><body><h1>HTTP Status 404 - Not Found</h1></body></html>"

}

I am new to this So, please explain me step by step process to get out of this error.

Former Member
0 Kudos

Hi Selvaraj,


The way accessing remote services works for fiori apps on hana cloud is using destinations which are configured in the cockpit and the calls are routed through them.

This routing is also configured in your application's neo-app.json file, so you should not put in the full url in the manifest.json but  a relative path to what is configured in your destination.

You can read more here SAP HANA Cloud Platform.

In your case I think the path should just be "/prodcut".


Regards,

Guy

Former Member
0 Kudos

Hi,

   I have tried this also ,

but i don't know how can i configure Neo.app.json file , Can you please tell me in the "/resource" field , whether I put full URL or something.

Former Member
0 Kudos

kindly check the following also

Former Member
0 Kudos

There is no need to change the configuration in the neo-app.json, please attach a screen shot of the original neo-app.json file.

Former Member
0 Kudos

Hi,

    this is original neo-app.json file .

neo-app.json :


{

  "routes": [

    {

      "path": "/webapp/resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "entryPath": "/resources"

      },

      "description": "SAPUI5 Resources"

    },

    {

      "path": "/webapp/test-resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "entryPath": "/test-resources"

      },

      "description": "SAPUI5 Test Resources"

    },

    {

      "path": "/resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "entryPath": "/resources"

      },

      "description": "SAPUI5 Resources"

    },

    {

      "path": "/test-resources",

      "target": {

        "type": "service",

        "name": "sapui5",

        "entryPath": "/test-resources"

      },

      "description": "SAPUI5 Test Resources"

    }

  ]

}

Former Member
0 Kudos

when i run this application i got following error.

Former Member
0 Kudos

Hi,

In the neo-app.json please add this route:

{

      "path": "/destinations/product",

      "target": {

        "type": "destination",

        "name": "product"

      },

      "description": "product"

    }

In the manifest.json set the following url:

"uri": "/destinations/product/",

Former Member
0 Kudos

Hi,

    I did all the correction what you have told but After that i got blank page with following Error.

" Uncaught TypeError: Cannot read property 'getCore' of undefined"

                                        and

" Uncaught ReferenceError: $ is not defined"

Kindly find the Screenshot for your reference.

neo-app.json :

manifest.json :

After that I got this blank output ,

Did i done any mistake in this. Please let me know the suggestion .

Former Member
0 Kudos

Hi,

Two things:

  • In the neo-app.json please remove the entryPath property from the product route.
  • The error is a known issue if you enabled the hybrid toolkit plugin, go to prefrences -> hybrid application toolkit -> uncheck cordova facade preview.

Regards,

Guy

Former Member
0 Kudos

Hi,

I have remove the entryPath property from the product route, and uncheck cordova facade preview also , but after i run the application I got the same blank page with the following error,

"Uncaught TypeError: Cannot read property 'getCore' of undefined"

Former Member
0 Kudos

I saw you overrode one of the ui5 routes please add it again:

  1.       "path": "/webapp/resources"
  2.       "target": { 
  3.         "type": "service"
  4.         "name": "sapui5"
  5.         "entryPath": "/resources" 
  6.       }, 
  7.       "description": "SAPUI5 Resources" 
  8.     }, 
Former Member
0 Kudos

Hi,

Yeah , I noticed that , now check it i have add it,

In neo-aoo.json :

manifest.json :

After I run this application , I got this error again "Sorry, a technical error occurred! Please try again later."

and i clicked the "show details" , got the following,


{

  "requestUri": "/destinations/product/$metadata?sap-documentation=heading",

  "statusCode": 200,

  "statusText": "OK",

  "headers": [],

  "body": "\r\n<!DOCTYPE html><head><meta charset='utf-8'><meta content='width=device-width, initial-scale=1.0' name='viewport'><meta content='universalui' name='uitype'><title>Log On</title><link href='https://answers.sap.com/universalui/assets/favicon-6249a7207f185aeac2f455784dcefb1c.png' rel='icon' type='image' /><link href='https://answers.sap.com/universalui/assets/favicon-51d035678350093f7e6da4f3a5fb320d.ico' rel='shortcut icon' type='image/x-icon' /><link href='https://answers.sap.com/universalui/assets/apple-touch-icon-b6b8b9f065ab8640c80a5cd2f1ef0dac.png' rel='apple-touch-icon' /><link rel=\"stylesheet\" media=\"all\" href=\"/universalui/assets/ids-035248d207a61e03414d078e4fda29f4.css\" /><meta name=\"csrf-param\" content=\"authenticity_token\" /><meta name=\"csrf-token\" content=\"EZ25fxGCvFAzKa8p7bSjHRSpI3eAmqiYyuJw+LYi+kXW77+1L0A1CQ+cYPmyvOd7wvz0JdZwFOWebIhO+jFuFQ==\" /><!-- third party cookies check --><!-- same origin protection check --></head><body data-pagetype='Login' data-spid='56a9ec73e4b0b91958373cb7' data-spname='s12hanaxs.hanatrial.ondemand.com'><main class='ids-main'><div class='ids-main__content'><div aria-labelledby='ids-heading-1' class='ids-container' role='dialog'><div class='ids-login-container'><div class='ids-login-sp'><div class='ids-login-sp__logo'><img alt=\"\" title=\"\" id=\"test-sp-logo-img\" src=\"https://accounts.sap.com/ui/public/56a9ec73e4b0b91958373cb7/RESOURCE_LOGO\" /></div><div class='ids-login-sp__sp-name'><h1 class='ids-heading-2' id='test-service-provider-name'></h1></div><div class='ids-login-sp__cta'></div></div><div class='ids-login-login ids-login-login--border'><div class='ids-login-widget'><h1 class='ids-heading-1 ids-heading-1--login' id='ids-heading-1'>Log On</h1><form id=\"logOnForm\" autocomplete=\"off\" role=\"form\" class=\"ids-form ids-form--login\" action=\"/saml2/idp/sso/accounts.sap.com\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /><input type=\"hidden\" name=\"authenticity_token\" value=\"abGPOGVAzmcF/dtahfJ64OMJ1aj0JoQW17CiS2sMXbWuw4nyW4JHPjlIFIra+j6GNVwC+qLMOGuDPlr9Jx/J5Q==\" /><div class='js-global-flashes-area' id='globalMessages'></div><fieldset class='ids-fieldset ids-fieldset--login'><input type=\"hidden\" name=\"xsrfProtection\" value=\"77+9Jg8ZPO+/ve+/vUFxce+/ve+/ve+/vRHvv70YUe+/ve+/vThG77+9bAxH77+977+977+9dDLvv706MTQ2NTI5NDkyNDgxNg\" ><input type=\"hidden\" name=\"method\" value=\"GET\"><input type=\"hidden\" name=\"idpSSOEndpoint\" value=\"https://accounts.sap.com/saml2/idp/sso/accounts.sap.com\"><input type=\"hidden\" name=\"SAMLRequest\" value=\"fVFha4MwEP0rku9Vo26VoIJtLBS2MdYyxr4dMaWBmLhcwrp/P7VfOsYGBwd37917vKsQBj2yNvizeZEfQaKPLoM2yJZFTYIzzAIqZAYGicwLdmgfH1gWp2x01lthNbmh/M8AROm8soZEe16Tt0OZ5x3d8TUveNZlRbkpadnSTdqtu3JDt5xEfLKkDMykmpy9H5ElCQhhg/EYI4yxsAMrijyZ5bNE9WOCaH9BSPQqHS5XJieTPmKQe4MejJ9GKb1fpVOtjzRlWc6Ku3fSVPNJtiBdgzQ7g4ELxnPzToGOrenlAKafBarkFl1dg32aItjzZ6uV+Ipare3n1knwsibeBUminXUD+L9DozFdJqpfnRYoCwZHKdRJyZ4kzVX05wObbw==\"><input type=\"hidden\" name=\"RelayState\" value=\"XS833E1FD7D4D2E248B818A1B0E7E8B1CD\"><input type=\"hidden\" name=\"Signature\" value=\"EZiwEI+07sJhfFYC5t89BcbcgL/TrzqQhRfwnnj2xNBNmeRTfEG+XIE7ky0HUwARAtBGqJ29B3kLhaptzbhiCmNVBj8MFB622M6dZNcgBmBAlfml85TB1QSU9W7J5MAf8npQrDHx+Wme3U8qxKCVt3f3OT2TQVzJ4yPrfZmtk9k=\"><input type=\"hidden\" name=\"SigAlg\" value=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"><input id='targetUrl' name='targetUrl' type='hidden' value='https://accounts.sap.com'><input id='sourceUrl' name='sourceUrl' type='hidden' value=''><input id='org' name='org' type='hidden' value=''><input id='spId' name='spId' type='hidden' value='56a9ec73e4b0b91958373cb7'><input id='spName' name='spName' type='hidden' value='s12hanaxs.hanatrial.ondemand.com'><input id='mobileSSOToken' name='mobileSSOToken' type='hidden' value=''><div class='ids-input-group ids-input-group--text ids-input-group--login ids-input-group--user' id='j_username-group'><div class='ids-label-container'><span class='ids-label-wrap'><label class='ids-label' for='j_username' id='j_username-label'>E-mail, ID, or User Name</label></span></div><div class='ids-control-container'><input autocomplete='off' class='ids-input ids-input--text ids-input--clear js-has-input-clear js-login-toggle-active-input-user' id='j_username' name='j_username' placeholder='E-mail, ID, or User Name' type='text' value='' /><p class='ids-error-block' id='j_username.errors'></p><a class='ids-input-clear js-input-clear' href='#' tabindex='-1'></a></div></div><div class='ids-input-group ids-input-group--text ids-input-group--login ids-input-group--password' id='j_password-group'><div class='ids-label-container'><span class='ids-label-wrap'><label class='ids-label' for='j_password' id='j_password-label'>Password</label></span></div><div class='ids-control-container'><input autocomplete='off' class='ids-input ids-input--text ids-input--clear js-has-input-clear js-login-toggle-active-input-password' id='j_password' name='j_password' placeholder='Password' type='password' /><p class='ids-error-block' id='j_password.errors'></p><a class='ids-input-option ids-utils-hide-mobile' href='https://answers.sap.com/ui/createForgottenPasswordMail?spId=56a9ec73e4b0b91958373cb7' id='forgotPasswordLink'>Forgot password?</a><a class='ids-input-clear js-input-clear' href='#' tabindex='-1'></a></div></div><div class='ids-input-group ids-input-group--checkbox ids-utils-centered' id='rememberme-group'><div class='ids-control-container'><ul aria-labelledby='rememberme-label' class='ids-input-group__items' role='group'><li class='ids-input-group__item'><span class='ids-checkbox-container--option'><input id='rememberme' name='rememberme' type='checkbox' /></span><span class='ids-label-container--option'><span class='ids-label-wrap'><label class='ids-label' for='rememberme' id='rememberme-label'>Remember me</label></span></span></li></ul><p class='ids-error-block' id='rememberme.errors'></p></div></div></fieldset><div class='ids-button-group ids-button-group--centered ids-button-group--login'><button class='ids-button ids-button--primary ids-button--login js-button-login' id='logOnFormSubmit' role='button' type='submit'>Log On</button></div></form></div><ul class='ids-login-options'><li class='ids-login-options__item'><a alt='Forgot password?' href='https://answers.sap.com/ui/createForgottenPasswordMail?spId=56a9ec73e4b0b91958373cb7' title='Forgot password?'>Forgot password?</a></li></ul></div></div></div></div></main><footer class='ids-footer'><div class='ids-footer__inner'><div class='ids-footer__logo-container'><div class='ids-footer__logo'><div id='test-default-logo'><img height=\"38\" src=\"/universalui/assets/sap-logo-powered-by-4a51b4106c08b661e493f6378db9c508.png\" alt=\"Sap logo powered by\" /></div></div></div></div></footer><script src=\"/universalui/assets/application-071dc81cd26845f57e3fe2466de1c56b.js\"></script><script src=\"/universalui/assets/login-5e31c5876a96dbcadd5d83bce9c97cdc.js\"></script><script type='text/javascript'>$(document).ready(function() {    var buttons = \"#forgotPasswordLink, #forgotPasswordLinkMobile, #registerLink, #registerLinkMobile\";    var addParamToButtons = function(paramName, paramValue) {        $(buttons).each( function() {            var link = $(this);            var url = link.attr(\"href\");            var paramString;            if (url.indexOf('?') >= 0) {                paramString = \"&\";            } else {                paramString = \"?\";            }            paramString += paramName + \"=\" + encodeURIComponent(paramValue);            link.attr(\"href\", url + paramString);        });    };    if ($.ids) {            var targetUrl = $.ids.overlay.getDestinationURI();        $(\"#targetUrl\").attr(\"value\", targetUrl);        addParamToButtons(\"targetUrl\", targetUrl);        var sourceUrl = $.ids.overlay.getParentURI();        $(\"#sourceUrl\").attr(\"value\", sourceUrl);        addParamToButtons(\"sourceUrl\", sourceUrl);    } else {    }});</script><script type='text/javascript'>function pageType() {  var pageType='Undefined';  var pageTypeFromPage = document.body.getAttribute('data-pagetype');  if (pageTypeFromPage != null) {    pageType = pageTypeFromPage;  }  return pageType;};function spName() {  var spName='Undefined';  var spNameFromPage = document.body.getAttribute('data-spname');  if (spNameFromPage != null) {    spName = spNameFromPage;  }  return spName;};function spId() {  var spId='Undefined';  var spIdFromPage = document.body.getAttribute('data-spid');  if (spIdFromPage != null) {    spId = spIdFromPage;  }  return spId;};var swa = {  pubToken: '1f27c1eb-778f-4cbe-83f5-e9aab5b7f148',  baseUrl: 'https://ids.warp.sap.com/tracker/',  visitorCookieTimeout: 63113852,  custom1:{ref:\"pageType\"},  custom2:{ref:\"spName\"},  custom3:{ref:\"spId\"}};(function(){  var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];  g.type='text/javascript'; g.defer=true; g.async=true; g.src=swa.baseUrl+'js/privacy.js';  s.parentNode.insertBefore(g,s);})();</script></body>"

}

Please suggest me  to solve.

Former Member
0 Kudos

You should check that your service works through the destination, run in your browser

the following url <web ide hostname>/destinations/product does it work?

You can also run your application with mock (in the run configuration) if your service doesn't work.

Former Member
0 Kudos

Hi,

     I have try this application with mock server , it shown followed

And, when i check the following url https://webidetesting9692752-p1941903330trial.dispatcher.hanatrial.ondemand.com/destinations/product...

it does not work,

first it ask me to logon and then it shown this Error "HTTP Status 405 - Bad Method"

Former Member
0 Kudos

What kind of authentication do you have configured on your service? it would be easiest if you just configured it with basic authentication

Former Member
0 Kudos

I have configured basic authentication only

Former Member
0 Kudos

This is ok in the destination configuration but question is what is the actual service configuration?

Former Member
0 Kudos

Hi,

In service configuration i put Basic Authentication only

Former Member
0 Kudos

I'm not familiar with the hana xs configurations but it seems like your authentication type is form authentication (in the authentication section), can you switch it to basic?

Former Member
0 Kudos

I followed this blog,

to generate OData from HANA XS database, Then, I Developed SAPUI5 Application with odata and when i try to retrieve data I getting this above errors.

Former Member
0 Kudos

I'm not an expert on hana xs so i cannot help here. You can try setting the authentication in the destination to noauthentication,then if your service is configured with basic the browser should show the credentials pop-up. If it doesn't then something is not right with your service authentication configuration.

Former Member
0 Kudos

Thanks for your valuable response.

former_member185414
Active Contributor
0 Kudos

Not sure whether it will help but can you try changing a few things in the destination configuration to match as below -

BR.

michal_keidar
Active Contributor
0 Kudos

Hi , can you please assist?

I guess the full service isn't configured properly?

If it doesn't work in the Service URL I guess it won't work in the preview.

Thanks,
Michal.

former_member225463
Participant
0 Kudos

Hello Selvaraj,

Your system destination connection is successful , but did you try to load the metadata for the product in the browser.

It seems like the metadata is not being loaded and hence you are getting the error.

Also when you click on Service URL , first of all it will ask you to select for a system which is missing in your case.

Kindly check it once again.

Regards,

Vikash

Former Member
0 Kudos

Hi Vikash,

Thanks for your response and  I have created Additional property in HANA Destination ,

        "WEBIDEAdditionalData = full_url"


    I have included the destination screenshot in previous post. i am using full_url  in this project so, it will take the OData data directly from that.

   kindly find the screenshot for metadata.

b_punith
Participant
0 Kudos

Hi Selvaraj,

You have created an application in Web IDE using a metadata service file in your system.

It could happen either if there is no proper destination in web ide or you have not entered correct OData Service URL in component.js/app descriptor file.

Check if this could help you for destination:

Regards,

Punith