- Posts: 15
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
error 400 at the beginning of survey
- fpielage
- Topic Author
- Offline
- New Member
Less
More
4 years 3 months ago #192087
by fpielage
error 400 at the beginning of survey was created by fpielage
Hi all,
the seems to be another problem with our active survey, but I don't konw, if it is a browser or a server problem:
Till now there were 763 answers, 207 of them completed. Today I got the first feedback, that a 400 error is displayed. In the server logs I found some additional 400 errors of other participants.
If the error occures, then when someone clicks on the "next" button of the welcome-page.
Version: 3.19.1+191009, php 7.2
Some idea, how to go on?
Herzliche Grüße
fp
the seems to be another problem with our active survey, but I don't konw, if it is a browser or a server problem:
Till now there were 763 answers, 207 of them completed. Today I got the first feedback, that a 400 error is displayed. In the server logs I found some additional 400 errors of other participants.
If the error occures, then when someone clicks on the "next" button of the welcome-page.
Version: 3.19.1+191009, php 7.2
Some idea, how to go on?
Herzliche Grüße
fp
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 3 months ago #192092
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic error 400 at the beginning of survey
Can you provide a link to the survey (or an demo survey on the same server)?
Can you reproduce the error? Screenshot with exact 400 error message.
Open the survey on the welcome page and click after 20 minutes the next button.
Open the survey on the welcome page and click after 5 minutes the next button.
Can you reproduce the error? Screenshot with exact 400 error message.
Open the survey on the welcome page and click after 20 minutes the next button.
Open the survey on the welcome page and click after 5 minutes the next button.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- fpielage
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 1
4 years 3 months ago #192097
by fpielage
Replied by fpielage on topic error 400 at the beginning of survey
No, I can't reproduce the error.
In a phonecall the participant said, that the only message is
400: wrong request
Until monday he want's to try another computer or another browser.
I ask him, to test the time delay.
I don't feel well, to publish the survey link, because it's active. But I post it via pm.
There is a short subdomain with an redirect to the survey. May this cause the error?
Grüße
fp
In a phonecall the participant said, that the only message is
400: wrong request
Until monday he want's to try another computer or another browser.
I ask him, to test the time delay.
I don't feel well, to publish the survey link, because it's active. But I post it via pm.
There is a short subdomain with an redirect to the survey. May this cause the error?
Grüße
fp
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 3 months ago #192102
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic error 400 at the beginning of survey
400: wrong request mean in general try to hack something or a bad URL
What is the url when the 400 error happen ?
What is the url when the 400 error happen ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 3 months ago #192112
by jelo
Is your participant using some of your hosted websites at the same time? You host a few websites on your keyweb server.
The subdomain and redirection shouldn't cause any trouble.
The 400 error often comes with different error messages.
Even though I don't think it is the source of the issue, you should set an individual session name in the config.php.
Currently your LimeSurvey installation uses the default PHP session name PHPSESSID.
manual.limesurvey.org/Optional_settings#Session_settings
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic error 400 at the beginning of survey
Ask for a screenshot of the error.fpielage wrote: In a phonecall the participant said, that the only message is
400: wrong request
Is your participant using some of your hosted websites at the same time? You host a few websites on your keyweb server.
The subdomain and redirection shouldn't cause any trouble.
The 400 error often comes with different error messages.
Even though I don't think it is the source of the issue, you should set an individual session name in the config.php.
Currently your LimeSurvey installation uses the default PHP session name PHPSESSID.
Code:
session' => array ( 'sessionName' => "PrivateCookieName", ),
manual.limesurvey.org/Optional_settings#Session_settings
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- fpielage
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 1
4 years 3 months ago #192113
by fpielage
Replied by fpielage on topic error 400 at the beginning of survey
This is a line of the server access log:
I suppose, about 2-3% of the survey accesses end like this. The IP belogs to a real person, to which I talked via telephone.
There is nothing, what is typical for all of those access-lines. Different browsers, differen IPs, different http (1.1 and 2.0). But "POST /index.php/582245" is the same for all.
Is it possible that it is a cookie problem, if not allowed to be stored in browser?
Grüße
fp
Code:
195.145.###.### - - [13/Dec/2019:13:12:54 +0100] "POST /index.php/582245 HTTP/1.1" 400 5013 "https://subdomain.domain.de/index.php/582245" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko" 659 5496
There is nothing, what is typical for all of those access-lines. Different browsers, differen IPs, different http (1.1 and 2.0). But "POST /index.php/582245" is the same for all.
Is it possible that it is a cookie problem, if not allowed to be stored in browser?
Grüße
fp
The topic has been locked.
- fpielage
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 1
4 years 3 months ago #192117
by fpielage
I tried an access with "store no cookies" option, what causes a 400 error, too. So I'll ask my participant about this option.
Thank you very much.
Grüße
fp
Replied by fpielage on topic error 400 at the beginning of survey
Ok, I can get it on Monday.jelo wrote: Ask for a screenshot of the error.
I do'nt think so (using another website at same time), but there is a website at www.domain.de , which uses PHPSESSID too. So I'll change the cookiename tonight. Now there is too much traffic on the survey.jelo wrote: Is your participant using some of your hosted websites at the same time? You host a few websites on your keyweb server.
I tried an access with "store no cookies" option, what causes a 400 error, too. So I'll ask my participant about this option.
Thank you very much.
Grüße
fp
The topic has been locked.
- fpielage
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 1
4 years 3 months ago #192168
by fpielage
Replied by fpielage on topic error 400 at the beginning of survey
I changed the cookie name, but I think, that wasn't the problem.
My participant asked him IT-Service again, and they found a cookie blocking. After setting an exeption for the survey subdomain, everything works fine.
My Question is, if it could be possible, that limesurvey checks, if storing of cookies is possible and gives an understandable hint to the user?
Herzliche Grüße
fp
My participant asked him IT-Service again, and they found a cookie blocking. After setting an exeption for the survey subdomain, everything works fine.
My Question is, if it could be possible, that limesurvey checks, if storing of cookies is possible and gives an understandable hint to the user?
Herzliche Grüße
fp
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
4 years 3 months ago #192169
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic error 400 at the beginning of survey
You can place something like this in your theme custom.js file:
Code:
var cookieTest = function () { if (navigator.cookieEnabled) return true; document.cookie = "cookietest=1"; var ret = document.cookie.indexOf("cookietest=") != -1; document.cookie = "cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT"; return ret; }; $(document).on('ready pjax:scriptcomplete',function(){ if($('#welcome-container').length > 0) { if(!cookieTest()) { $('#ls-button-submit').prop('disabled', true); alert('It appears that you have cookies blocked. Please enable cookies in your browser settings and refresh the page.'); } } });
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: fpielage
The topic has been locked.
- fpielage
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 1
4 years 3 months ago #192171
by fpielage
Replied by fpielage on topic error 400 at the beginning of survey
Thank you very much. The theme I use is the fruity theme. In the meantime I have solved the problem with a note at the bottom of the first page.
Grüße
fp
Grüße
fp
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 3 months ago #192187
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic error 400 at the beginning of survey
Javascript is the only solution , becaus in PHP : you can know if cookie are enable only in a second page.
BUT : maybe we can a cleaner message when :
1. There are a CRSF issue
2. This CRSF issue is about a COOKIE issue
=> Then show : «Seem you disable cookie in your browser : please allow it»
BUT : maybe we can a cleaner message when :
1. There are a CRSF issue
2. This CRSF issue is about a COOKIE issue
=> Then show : «Seem you disable cookie in your browser : please allow it»
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- thompsonmax
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
4 years 2 months ago #192877
by thompsonmax
Replied by thompsonmax on topic error 400 at the beginning of survey
Hello there. I have the same issue, thanks for the information.
Attachments:
The topic has been locked.