08-09-2019 07:23 AM
Hello Jan,
We have tried to fix the CORS related issues, but with mixed results. One day it seems to function, the next the console is spamming CORS errors for every request I try to make (also when patching does the job). My colleague has asked about this at support, but still without any news regarding this issue. We are kind of waiting for an outside solution to this.
Regarding true and false in " ". This is not a problem for the API. The API, Fiddler 4 and Postman perform the patch using "true" and "false". Also when trying another value like "yes", the error shows that only "true" and "false" are allowed with or without double-quotes.
{ "code": "InvalidRequest", "message": "Could not read JSON: Cannot deserialize value of type `java.lang.Boolean` from String \"yes\": only \"true\" or \"false\" recognized" }
So I fear that it is not about the double-quotes. The CORS behaviour is bothering us quite a bit. One day it functions fine, the next day it won't.
With regards,
Reinier
08-12-2019 12:36 AM
Hi Reinier,
Can you please provide a ticket number? I'd like to make sure we're not missing anything.
Thanks,
Jan
08-12-2019 01:54 AM
Hello Jan,
I sadly do not know the ticket number. My colleague has posted the problem for me in the support. He's currently on holiday.
My other colleague who's maintaining the server side has posted a new reply here regarding the problems: https://community.hexagongeospatial.com/t5/ERDAS-APOLLO-ECW-JP2/Erdas-Apollo-REST-API-returns-403-er....
With regards,
Reinier
08-12-2019 11:33 AM
Ok, that would be my ticket but it was regarding the PATCH vs. POST request which is now clarified. There wasn't the CORS issue acting up.
It would require a new ticket for that. But we would need more detailed description on what endpoints are being used an how.