Nick Moiseykin Posted June 10, 2021 Share Posted June 10, 2021 Hello I am new and I am hopeful someone can help me here. I have a Demo SageX3 with Sage running. I am developing a connect to this environment. I will be using Rest API option. Many specific requests work. Here are a few examples what works: http://10.0.3.137:8124/sdata/x3/erp/X3ERPV12_SEED/SORDER('SONZA0210001')?representation=SORDER.$details http://x3server:8124/sdata/x3/erp/X3ERPV12_SEED/BPCUSTOMER?representation=BPCUSTOMER.$query&count=20 However, the first request my application needs to make is to read the schema and get all the objects. SDATA documentation (http://sage.github.io/SData-2.0/pages/core/0401/) indicates it is possible by accessing this URL http://10.0.3.137:8124/sdata/x3/erp/X3ERPV12_SEED/$schema This request fails with BAD REQUEST error. How can I fix it? Do I need to enable something in Sage to access this request? I will be very much thankful. If there is another forum to post things like this I will be happy to repost. Thank you Nick Link to comment Share on other sites More sharing options...
Robert Huang Posted June 17, 2021 Share Posted June 17, 2021 Have you fixed it? It seems I have the same problem with you. if the url have $xxx, it return BAD REQUEST, and forbidden info: {"$diagnoses":[{"$severity":"error","$message":"Forbidden [x-9c41b01b73bb 2021-06-17T01:46:09.035Z]","$stackTrace":"Forbidden [x-9c41b01b73bb 2021-06-17T01:46:09.035Z]"}]} Link to comment Share on other sites More sharing options...
Robert Huang Posted June 17, 2021 Share Posted June 17, 2021 I guess it is the request url doesn't allow CORS request. Because in normal web access, it works, but failed when you try to send the request by postman or other tools. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now