Error: can't verify CSRF token authenticity

docker

(Alessio) #1

Hello,
I’m importing comment from wordpress to discourse (POST call on /posts) inside a PHP script (i already tried with curl and file_get_contents) but after about 15 minutes it begins to respond only with error 500. Discourse Logs doesn’t report anything, but server logs report this error (with some censored data):

Started POST "/posts" for 94.124.67.2 at 2015-10-12 08:20:27 +0000
Processing by PostsController#create as HTML
Parameters: {"wp-id"=>"114140",
"embed_url"=>"http://www.domain.com/path-to-the-post-on-wordpress-style/",
"api_key"=>"the_LOOONG_api_key",
"api_username"=>"api_cool_username",
"title"=>"post title",
"raw"=>"Raw post content",
"category"=>"name_of_category",
"skip_validations"=>"true",
"auto_track"=>"true"}

Can't verify CSRF token authenticity

Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.7ms)
Redis::CommandError (MISCONF Redis is configured to save RDB
snapshots, but is currently not able to persist on disk. Commands that
may modify the data set are disabled. Please check Redis logs for
details about the error.)
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:113:in
`call'
Job exception: MISCONF Redis is configured to save RDB snapshots, but
is currently not able to persist on disk. Commands that may modify the
data set are disabled. Please check Redis logs for details about the
error.

I’m not a sys and unfortunately i’m not a ruby developer so I don’t know where to start for resolve this problem.
Can you help me, please?

Discourse version: v1.5.0.beta2 +31


(Kane York) #2

One of these is incorrect. Are you sure you’re using a username that exists on Discourse?

Also, this is very bad. Is your disk full?