The Movie Database 支持

Hi,

I am trying to implement creating a List through my API, but I am constantly getting a response of "Invalid parameters - Your request parameters are incorrect"

Even when trying with the apiary debugger I get the same message.

Is there something wrong with the API (unlikely) or my code (more likely)?

Here is a log trace of the output (if it helps at all)

[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection sendRequestHeader - >> POST /3/list?api_key=KEY&session_id=SESSIONHTTP/1.1 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection sendRequestHeader - >> Content-Type: application/json 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection sendRequestHeader - >> Accept: application/json 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection sendRequestHeader - >> Content-Length: 144 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection sendRequestHeader - >> Host: private-639f-themoviedb.apiary.io 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection sendRequestHeader - >> Connection: Keep-Alive 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - >> "{"description":"This list was created to share all of the totally awesome movies I've seen.","name":"My     Totally Awesome List!!","language":"en"}" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "HTTP/1.1 400 Bad Request[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Access-Control-Allow-Origin: *[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Age: 0[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Content-Type: application/json;charset=utf-8[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Date: Wed, 20 Nov 2013 14:02:40 GMT[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Server: nginx[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Status: 400 Bad Request[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Via: 1.1 varnish[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "X-Apiary-Ratelimit-Limit: 120[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "X-Apiary-Ratelimit-Remaining: 119[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "X-Apiary-Transaction-Id: 528cc100b09164020000b244[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "X-Cache: MISS[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "X-Cacheable-Status: 400[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "X-Varnish: 2385715400[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "X-Varnish-Sid: tm-v-p-1200[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Content-Length: 95[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "Connection: keep-alive[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "[\r][\n]" 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - Receiving response: HTTP/1.1 400 Bad Request 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << HTTP/1.1 400 Bad Request 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Access-Control-Allow-Origin: * 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Age: 0 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Content-Type: application/json;charset=utf-8 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Date: Wed, 20 Nov 2013 14:02:40 GMT 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Server: nginx 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Status: 400 Bad Request 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Via: 1.1 varnish 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << X-Apiary-Ratelimit-Limit: 120 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << X-Apiary-Ratelimit-Remaining: 119 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << X-Apiary-Transaction-Id: 528cc100b09164020000b244 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << X-Cache: MISS 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << X-Cacheable-Status: 400 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << X-Varnish: 2385715400 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << X-Varnish-Sid: tm-v-p-1200 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Content-Length: 95 
[14:02:39   FINE] org.apache.http.impl.conn.DefaultClientConnection receiveResponseHeader - << Connection: keep-alive 
[14:02:39   FINE] org.apache.http.impl.client.DefaultRequestDirector execute - Connection can be kept alive indefinitely 
[14:02:39   FINE] org.apache.http.impl.conn.Wire wire - << "{"status_code":5,"status_message":"Invalid parameters - Your request parameters are incorrect"}" 
[14:02:39   FINE] org.apache.http.impl.conn.PoolingClientConnectionManager releaseConnection - Connection [id: 0][route: {}->http://private-639f-themoviedb.apiary.io] can be kept alive indefinitely 
[14:02:39   FINE] org.apache.http.impl.conn.PoolingClientConnectionManager releaseConnection - Connection released: [id: 0][route: {}->http://private-639f-themoviedb.apiary.io][total kept alive: 1; route allocated: 1 of 1; total allocated: 1 of 20] 
[14:02:39   INFO] com.omertron.themoviedbapi.methods.TmdbListsTest test1CreateList - StatusCodeList[listId=<null>,statusCode=5,statusMessage=Invalid parameters - Your request parameters are incorrect]

3 回复(第 1 页,共 1 页)

Jump to last post

It looks like you're not providing the list ID

The url should be more like /3/list/LISTID?api_key....

I'm creating a list. I don't know what the list id is until after it's created.

Sorry, I read past the create part without seeing it.

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区