- Posts: 59
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Getting "400: Bad Request " while uploading participating
- yohay
- Topic Author
- Offline
- Senior Member
Less
More
1 year 11 months ago - 1 year 11 months ago #227765
by yohay
Getting "400: Bad Request " while uploading participating was created by yohay
LimeSurvey Version 5.3.6+220321
Hi,
I'm trying to upload paricipants to the survey drom csv and I get the following error:
Maybe this is relevant: I've recently upgraded from LS version 2.52 to 5.3.6, (I didnt had those problem on the previous version). The server is also different (for advanced php version)
Any idea where and what are the settings that needs to be changed?
Thanks!
Hi,
I'm trying to upload paricipants to the survey drom csv and I get the following error:
It seems that is related to the number of participants I'm trying to upload (45000) as when I'm trying less records (e.g. 2500) there are no errors."400: Bad Request
The CSRF token could not be verified.
The request could not be understood by the server due to malformed syntax. Please do not repeat the request without modifications."
Maybe this is relevant: I've recently upgraded from LS version 2.52 to 5.3.6, (I didnt had those problem on the previous version). The server is also different (for advanced php version)
Any idea where and what are the settings that needs to be changed?
Thanks!
Last edit: 1 year 11 months ago by yohay.
Please Log in to join the conversation.
- yohay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 0
1 year 11 months ago #227802
by yohay
Replied by yohay on topic Getting "400: Bad Request " while uploading participating
Just to update that I saw in similar posts that this has something to do with the php configuration. I've tried changing "post_max_size" , "upload_max_filesize" and "max_input_vars" in php.ini but no change.
If anyone has experienced something similar appreciate if you could guide me how to solve it
If anyone has experienced something similar appreciate if you could guide me how to solve it
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
1 year 11 months ago #227806
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Getting "400: Bad Request " while uploading participating
From what to what did you change these values? Because my guess would also that these variables are responsible for this, as you have no problems to upload 2500 records, but run into trouble with higher numbers.
Have a try where the limit is and if that limit goes up when you increase these PHP variables. My guess would be the "max_input_vars".
Have a try where the limit is and if that limit goes up when you increase these PHP variables. My guess would be the "max_input_vars".
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- yohay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 0
1 year 11 months ago #227896
by yohay
Replied by yohay on topic Getting "400: Bad Request " while uploading participating
Thanks, I'll try to update this field again.
Please Log in to join the conversation.
- yohay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 0
1 year 11 months ago #227902
by yohay
Replied by yohay on topic Getting "400: Bad Request " while uploading participating
I've increased the "max_input_vars" number but still no change.
Are there any other settings that might cause that?
Are there any other settings that might cause that?
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
1 year 11 months ago #227904
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Getting "400: Bad Request " while uploading participating
To what did you increase it? 10.000? Where does it max out now?
What about 100.000?
What about 100.000?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- yohay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 0
1 year 11 months ago #227911
by yohay
Replied by yohay on topic Getting "400: Bad Request " while uploading participating
I've increased it to 100,000
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
1 year 11 months ago #227920
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Getting "400: Bad Request " while uploading participating
Well, then I am done with my tips.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- davebostockgmail
- Offline
- Elite Member
Less
More
- Posts: 166
- Thank you received: 26
1 year 11 months ago - 1 year 11 months ago #228048
by davebostockgmail
Replied by davebostockgmail on topic Getting "400: Bad Request " while uploading participating
I think this has something to do with the Timeout and also the memory settings in the PHP ini file I was having similar issues with uploads as well as reporting and exports for an extremely large file so I set
memory_limit to an excessive 10240M and max_execution_time to 1200 and this seemed to resolve the issue for me.
I had a participants file of 320K names and emails along with 200K responses and this also fixed the invitation sending timeouts as well.
memory_limit to an excessive 10240M and max_execution_time to 1200 and this seemed to resolve the issue for me.
I had a participants file of 320K names and emails along with 200K responses and this also fixed the invitation sending timeouts as well.
Last edit: 1 year 11 months ago by davebostockgmail.
The following user(s) said Thank You: holch, yohay
Please Log in to join the conversation.
- yohay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 0
1 year 11 months ago #228118
by yohay
Replied by yohay on topic Getting "400: Bad Request " while uploading participating
Great , It seems that it works.
Many thanks!
Many thanks!
Please Log in to join the conversation.