You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ok. easier after getting some sleep.
origin url = localhost:8001, odata url localhost:4000. this will not work unless you turn off cors check at browser level or proxy localhost:8001/odata_service to localhost:4000
OpenUI5 version: openui5-runtime-1.56.5
Browser/version (+device/version):Chrome/Laptop
Steps to reproduce the problem:
Failed to get contexts for http://localhost:4000/TripPinRESTierService/(S(LSA123))/People with start index 0 and length 10 - Error: Expected 'OData-Version' header with value '4.0' but received value 'null' in response for http://localhost:4000/TripPinRESTierService/(S(LSA123))/People?$select=Age,FirstName,LastName,UserName&$skip=0&$top=10
at R.doCheckVersionHeader (https://sapui5.hana.ondemand.com/sdk/resources/sap/ui/core/library-preload.js:3564:314)
the response header:
HTTP/1.0 200
Content-Type: application/json; odata.metadata=minimal
Access-Control-Allow-Origin: *
OData-Version: 4.0
Content-Length: 1189
Server: Werkzeug/0.14.1 Python/3.6.5
Date: Sun, 26 Aug 2018 01:02:21 GMT
response body:
{
"@odata.context": "http://localhost:4000/TripPinRESTierService/(S(LSA123))/$metadata#People(Age,FirstName,LastName,UserName)",
"value": [
{
"Age": 23,
"FirstName": "Angel",
"LastName": "Huffman",
"UserName": "angelhuffman"
},
{
"Age": 44,
"FirstName": "Clyde",
"LastName": "Guess",
"UserName": "clydeguess"
},
{
"Age": 19,
"FirstName": "Elaine",
"LastName": "Stewart",
"UserName": "elainestewart"
},
{
"Age": 37,
"FirstName": "Genevieve",
"LastName": "Reeves",
"UserName": "genevievereeves"
},
{
"Age": 25,
"FirstName": "Georgina",
"LastName": "Barlow",
"UserName": "georginabarlow"
},
{
"Age": 19,
"FirstName": "Javier",
"LastName": "Alfred",
"UserName": "javieralfred"
},
{
"Age": 26,
"FirstName": "Joni",
"LastName": "Rosales",
"UserName": "jonirosales"
},
{
"Age": 41,
"FirstName": "Keith",
"LastName": "Pinckney",
"UserName": "keithpinckney"
},
{
"Age": 30,
"FirstName": "Krista",
"LastName": "Kemp",
"UserName": "kristakemp"
},
{
"Age": 29,
"FirstName": "Laurel",
"LastName": "Osborn",
"UserName": "laurelosborn"
} ]
}
The text was updated successfully, but these errors were encountered: