Topic: Internal error when using /post/update.xml

Posted under e621 Tools and Applications

Hey! Just thought I'd give the API a try and I've had no problems getting/listing/viewing information however I don't seem to be able to update tags on posts (haven't tried anything else yet).

I get a HTTP 500 with:

NoMethodError in PostController#update
 
undefined method `[]' for nil:NilClass

Tool + Request + Full textual HTTP 500 error page

Any ideas? Maybe I'm just being daft and misunderstood something, however there seems to have been similar problems looking in the bug thread...

Updated

TonyCoon

Former Staff

The correct parameter is post[tags], not tags. It still shouldn't error out though, it should just act like you didn't provide any tags, so I'll fix that. I'll also make it use tags if it exists instead of post[tags].

Updated by anonymous

TonyLemur said:
The correct parameter is post[tags], not tags. It still shouldn't error out though, it should just act like you didn't provide any tags, so I'll fix that. I'll also make it use tags if it exists instead of post[tags].

Well, well, well, seems I can't even read simple instructions... But that's great, works perfectly now, thanks. Suspected something wasn't quite right as I was expecting some kind of API usage error and not an application error.

Updated by anonymous

  • 1