Erro com.esri.arcgisruntime.io.HttpResponseException: status code: 400, reason phrase: Bad Request.

656
3
09-30-2020 06:51 AM
NamXuan
New Contributor

I'm using Search for places an error occurs, I don't know where the reason comes from although I have used it successfully before.

0 Kudos
3 Replies
MarkBaird
Esri Regular Contributor

The stack trace doesn't give me much to go on.  Can you show any code and say what version of the API you are using?

Not sure if you are using Kotlin or Java, but here are some samples which may help to explain how to perform geocoding operations.

arcgis-runtime-samples-android/java/find-address at master · Esri/arcgis-runtime-samples-android · G... 

arcgis-runtime-samples-android/java/find-place at master · Esri/arcgis-runtime-samples-android · Git... 

The above samples are Java, but we have the same ones written in Kotlin in the same git repository.

Does this help?

0 Kudos
NamXuan
New Contributor

Thank you very much, I will find out about the solution you have come up

with and get back to you as soon as possible .

Vào Th 5, 1 thg 10, 2020 vào lúc 16:48 Mark Baird <geonet@esri.com> đã

viết:

GeoNet, The Esri Community | GIS and Geospatial Professional Community

<https://community.esri.com/?et=watches.email.thread>

Re: Erro com.esri.arcgisruntime.io.HttpResponseException: status code:

400, reason phrase: Bad Request.

reply from Mark Baird

<https://community.esri.com/people/mbaird-esristaff?et=watches.email.thread>

in ArcGIS Runtime SDK for Android - View the full discussion

<https://community.esri.com/message/956727-re-erro-comesriarcgisruntimeiohttpresponseexception-status-code-400-reason-phrase-bad-request?commentID=956727&et=watches.email.thread#comment-956727>

0 Kudos
NamXuan
New Contributor

Hi Mark Baird

seems that the error is just happening on my project, I tried the find

place example which works fine.

Vào Th 6, 2 thg 10, 2020 vào lúc 20:20 NXN <teo12011999@gmail.com> đã

viết:

Thank you very much, I will find out about the solution you have come up

with and get back to you as soon as possible .

Vào Th 5, 1 thg 10, 2020 vào lúc 16:48 Mark Baird <geonet@esri.com> đã

viết:

>> GeoNet, The Esri Community | GIS and Geospatial Professional Community

>> <https://community.esri.com/?et=watches.email.thread>

>> Re: Erro com.esri.arcgisruntime.io.HttpResponseException: status code:

>> 400, reason phrase: Bad Request.

>>

>> reply from Mark Baird

>> <https://community.esri.com/people/mbaird-esristaff?et=watches.email.thread>

>> in ArcGIS Runtime SDK for Android - View the full discussion

>> <https://community.esri.com/message/956727-re-erro-comesriarcgisruntimeiohttpresponseexception-status-code-400-reason-phrase-bad-request?commentID=956727&et=watches.email.thread#comment-956727>

>>

0 Kudos