on 10-03-2014 8:05 AM
Yes. I Found a solution. I realy dont know how suspicious it is, but worked very well
I'm trying to consume oData and the OPTION method is set...
So i put this http before my service odata:
https://cors-anywhere.herokuapp.com/
Look how it became:
In other words, its a problem of CORS - Cross-origim-Resource-Samambaia....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys,
I still need a hint/answer.
Thanks,
Marius.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marius
Try looking at transactions /IWBEP/ERROR_LOG and /IWFND/ERROR_LOG on the server.
Called from the command box in sapgui, these would need to be entered with a preceding '/n', e.g. '/n/IWBEP/ERROR_LOG'. I add them as Favourites for convenience.
If the problem is in the service response you should see something here. If not, you can have a look at the network activity with an http sniffer, to see what http calls happen and succeed.
Regards
Ron.
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So ..
I've tried all possibilities ...
"New ODataService Data Source" - the request was "http://gateway:8000/sap/opu/odata/sap/Z_AUTH_SERVICE/"
"Use Jsonp"
"Use WEB Proxy"
None of them ... the response is "System returned an error" for all 3 accounts (and no sniffer data).
"New ODataQuery Data Source" - the request was "http://gateway:8000/sap/opu/odata/sap/Z_AUTH_SERVICE/AuthCollection('{0}')"
"Use Jsonp" the response is "Request timeout", sniffer response "Unauthorized".
"Use Proxy" the response is "Can't get reponse", no sniffer data
None of the above, the response is "HTTP request failed", no sniffer data
"New RESTful Data Source" - the request was "http://gateway:8000/sap/opu/odata/sap/Z_AUTH_SERVICE/AuthCollection('{0}')"
"Use Jsonp" the response is "Request timeout", sniffer response "Bad request".
"Use Proxy" the response is "Can't get reponse", no sniffer data
None of the above, the response is "HTTP request failed", no sniffer data
Although I've got even a window pop-up for my user and pass (even though they where completed in the wizard) I still got the 2 responses "Unauthorized" and "Bad request".
Is there a way to find out why am I "Unauthorized" ?
Thanks,
Marius
Hello Marius,
Seems like something is wrong with the URL
U r performing READ is it ?
If yes below URL seems wrong :
http://gateway:8000/sap/opu/odata/sap/Z_AUTH_SERVICE/AuthCollection('{0}')
Please try as below:
http://gateway:8000/sap/opu/odata/sap/Z_AUTH_SERVICE/AuthCollection('0')
Regards,
Ashwin
Hi Marius,
Since Appbuilder is a browser based app, it should show its network activity in the developer tools of the browser.
Example: UI5 can also be a real pain in reporting 'Errors' that we have no means of discerning where the source is. The usual initial step is to turn on network tracing in dev tools and see what http calls occur. Even if they fail, you will at least see the attempt. If there is not even an attempt your web app is not working properly. UI5 can fail due to out of date libraries, etc. Appbuilder might have that kind of issue.
Have you confirmed that the service is responding outside of Appbuilder by simply using a direct browser request to http://gateway:8000/sap/opu/odata/sap/Z_AUTH_SERVICE/ ?
Regards
Ron.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.