我在 openrouteservices map 中实现 POST RETROFIT 以获得往返路线时遇到问题。 下面附上的照片是错误日志。 Enter image description here
这是我的 API 接口(interface)
Call<Round> getRoundCoordinates(
/*@Header("Content-Type: application/json") String authHeader ,*/
@Header("Authorization") String authHeader,
@Query("coordinates") List<List<Double>> coordinates,
@Query("length") int length,
@Query("seed") int seed
);
并且显示 500 错误代码。任何可以提供帮助的人。提前致谢:)
最佳答案
错误 500 是服务器内部错误。因此,要么它无法处理您的参数值,要么它完全独立于客户端,错误在于服务器代码。
关于android - 如何修复 Retrofit Android Studio 中的 500 响应代码错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63072972/