cancel
Showing results for 
Search instead for 
Did you mean: 

Getting an error while uploading a file in sapui5 by using OData service

Former Member
0 Kudos

Hello All,

When I tried with the below  example code I am getting  the following error.



view code



Controller Code




In console I am getting uncaught TyepError  as show in below



.

Help me to solve this issue.

Thanks&Regards

Uma

Accepted Solutions (0)

Answers (3)

Answers (3)

ricardobraga
Explorer
0 Kudos
Former Member
0 Kudos

Do yo use SAP Mobile Platform between the client and the backend?

Qualiture
Active Contributor
0 Kudos

I see a 404 error and a 500 (connection timed out) error, you may want to investigate these first

Former Member
0 Kudos

Hi Robin,

I solved the 404 error, but still I am getting the Time-out error and  Uncaught Type Error .

Qualiture
Active Contributor
0 Kudos

Well, the 500 error indicates a problem on the server, so I would investigate there. Maybe also set an HTTP trace to see if your request is going in the right direction.

The uncaught type error could be a result of the 500 error

Former Member
0 Kudos


Now i am getting the following error in console

and in network tab I am getting CSRF token validation failed error.

Qualiture
Active Contributor
0 Kudos

There are quite some topics here on SCN as well on Stackoverflow's UI5 space on how to solve  OData service authentication issues