Dark Sky

부분 유료
Verified
분류별 Dark Sky | 업데이트됨 3달 전 | Weather
인기

9.8 / 10

지연 시간

608ms

서비스 수준

100%

모든 토론으로 돌아가기

Any idea why this request in Dark Sky Time Machine gives a 400 error?

avatar
digitalice
2년 전

General
Status Code: 400
Request URL: https://dark-sky.p.rapidapi.com/{latitude},{longitude},{time}
Request Method: GET

Response Headers
"cache-control": “no-store”
“content-type”: "application/json; charset=utf-8"
“date”: “Sun, 22 Mar 2020 20:03:15 GMT”
“server”: "RapidAPI-1.0.42"
“strict-transport-security”: "max-age=31536000"
“vary”: “Accept-Encoding”
“x-rapidapi-region”: "AWS - us-west-2"
“x-rapidapi-version”: "1.0.42"
“x-ratelimit-requests-limit”: "100"
“x-ratelimit-requests-remaining”: "93"
“x-response-time”: “0.139ms”
“content-length”: "48"
“connection”: “Close”

Response Body
{2 items
"code":400
"error":“Poorly formatted request”
}

avatar
alexwalling commented 2년 전

Hey there! Looks like it may be an issue with how the request is being formatted? If you reach out to support@rapidapi.com they’d be happy to help!

avatar
Amplus commented 2년 전

Hello digitalice, I was getting the same error calling the TimeMachine method but when I changed the Time parameter to unix time it works. Maybe it’s an issue with the url format of the datetime param.

avatar
chrismorris426 commented 2년 전

On the time Time Machine I had this error when I only provided a date, as in the example. When I gave it a time (T[HH]:[MM]:[SS]) too it worked correctly.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입
등급: 4.8 - 투표: 6