GeoEvent : Unsupported Media Type

555
2
05-04-2018 03:36 AM
Jean-MarieDULISCOUET
Esri Contributor

Hi, I have an issue with an input Poll an external website for json (GeoEvent 10.6) :  Request failed (HTTP/1.1 415 Unsupported Media Type). i changed the MIME type with "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", i still have an ERROR. Some idea ?

0 Kudos
2 Replies
DanielCota1
Occasional Contributor

Hi Jean-Marie DULISCOUET‌,

Any chance you can provide the URL that you are trying to access within Geoevent? Depending on how the JSON is accessed, it can require a certain MIME type.

Thanks,

Daniel

0 Kudos
Stefan_Jung
Esri Contributor

Hey,

so "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" is the MIME Type you configured as "Acceptable MIME Types (Client Mode)" in the Advanced section of your Input Adapter or is this the Content-Type of the Response from your external Website?

In General, when Polling a JSON, it should work to use "text/json,application/json" for "Acceptable MIME Types (Client Mode)". But only if it fits to the Content-Type of you external Website. So you should check what MIME Type is used there.

Best,

Stefan

0 Kudos