Hi Travis,
I am using discover api get call and sory by popularity. from yesterday it is giving error.. Please check the discover get api . I just checked now . It's not fixed yet.
Without seeing the fully constructed URL that is error'ing I won't be able to help out much more. If you can get a hold of that I can investigate this further for you.
First, you have 2 dashes in your primary_release_date.gte param: 2016-9--5 and second, 2016-9-5 isn't a valid date object. As per the documentation, you need to specify your dates in YYY-MM-DD, i.e. 2016-09-05. And third, you're specifying a gte that is later than your lte which won't yield any results. Here's a working query:
Sorry Travis I have found the problem..it is the auto date generator giving me a negative day .. which is ,of course, not available.. That's why it was showing internal error.
Travis Bell 的回复
于 2016 年 09 月 01 日 12:07下午
Hi there,
What's the request you are making?
Md Tanvir Alam 的回复
于 2016 年 09 月 01 日 5:54下午
Hi Travis, I am using discover api get call and sory by popularity. from yesterday it is giving error.. Please check the discover get api . I just checked now . It's not fixed yet.
http://discover/movie?primary_release_date.gte=2014-09-15&primary_release_date.lte=2014-10-22
Travis Bell 的回复
于 2016 年 09 月 01 日 6:02下午
Hi,
This query is working ok for me:
Are you passing any extra params?
Md Tanvir Alam 的回复
于 2016 年 09 月 01 日 6:07下午
Hi Travis,
year,month,currentday,beforeday are stored in variable...I don't know why it worked first now it's not working..doesn't make any sense.
Travis Bell 的回复
于 2016 年 09 月 01 日 6:18下午
Without seeing the fully constructed URL that is error'ing I won't be able to help out much more. If you can get a hold of that I can investigate this further for you.
Md Tanvir Alam 的回复
于 2016 年 09 月 01 日 6:20下午
http://api.themoviedb.org/3/discover/movie?primary_release_date.gte=2016-9--5&primary_release_date.lte=2016-9-2&api_key=###&sort_by=popularity.desc
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Travis Bell 的回复
于 2016 年 09 月 01 日 6:29下午
You actually have three problems here.
First, you have 2 dashes in your
primary_release_date.gte
param:2016-9--5
and second,2016-9-5
isn't a valid date object. As per the documentation, you need to specify your dates inYYY-MM-DD
, i.e.2016-09-05
. And third, you're specifying agte
that is later than yourlte
which won't yield any results. Here's a working query:Md Tanvir Alam 的回复
于 2016 年 09 月 01 日 6:30下午
Sorry Travis I have found the problem..it is the auto date generator giving me a negative day .. which is ,of course, not available.. That's why it was showing internal error.
Thanks for your support Travis. Great Movie Api.
Travis Bell 的回复
于 2016 年 09 月 01 日 6:31下午
No problem! Happy you found the issue.