Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Sep 26, 2011 8:10 am 
Offline
Senior Newbie

Joined: Mon Sep 26, 2011 12:49 am
Posts: 6
I can't get nodebalancer.node.update to work, all my attempts result in a "Something wasn't handled well. Logged." error. I don't have issues with other nodebalancer calls, such as nodebalancer.node.list.

I was using the Python Linode API bindings when I first came across this issue. But then I tried following the API reference to generate the requests using Python urllib and get the same error.

Here's the console log, minus private info:

Code:
In [1]: import urllib, urllib2

In [2]: req = urllib2.Request('https://api.linode.com/api/?' + urllib.urlencode({'api_key': 'APIKEY', 'api_action': 'nodebalancer.node.list', 'configid': 1234, 'api_responseformat': 'json', 'mode': 'accept'}))

In [3]: urllib2.urlopen(req).read()
Out[3]: '{"ERRORARRAY":[],"DATA":[{"WEIGHT":100,"ADDRESS":"xxx.xxx.xxx.xxx","LABEL":"xxx","NODEID":###,"MODE":"accept","CONFIGID":1234, "STATUS":"UP","NODEBALANCERID":1111},{"WEIGHT":100,"ADDRESS":"xxx.xxx.xxx.xxx","LABEL":"xxx","NODEID":###,"MODE":"accept","CONFIGID":1234,"STATUS":"UP","NODEBALANCERID":2222}],"ACTION":"nodebalancer.node.list"}'

In [4]: req = urllib2.Request('https://api.linode.com/api/?' + urllib.urlencode({'api_key': 'APIKEY', 'api_action': 'nodebalancer.node.update', 'nodeid': 1111, 'api_responseformat': 'json', 'mode': 'accept'}))

In [5]: urllib2.urlopen(req).read()
Out[5]: '{"ERRORARRAY":[{"ERRORCODE":500,"ERRORMESSAGE":"Something wasn\'t handled well. Logged."}],"DATA":{},"ACTION":"nodebalancer.node.update"}'



Top
   
 Post subject:
PostPosted: Mon Sep 26, 2011 11:21 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Can you give it another shot?

Thanks,
-Chris


Top
   
 Post subject:
PostPosted: Mon Sep 26, 2011 11:35 am 
Offline
Senior Newbie

Joined: Mon Sep 26, 2011 12:49 am
Posts: 6
No luck, still getting the same message.


Top
   
 Post subject:
PostPosted: Mon Sep 26, 2011 1:24 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
OK, that was a different bug that time. Try again please.


Top
   
 Post subject:
PostPosted: Mon Sep 26, 2011 1:34 pm 
Offline
Senior Newbie

Joined: Mon Sep 26, 2011 12:49 am
Posts: 6
Great, the error is gone! Thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group