libcrowds icon indicating copy to clipboard operation
libcrowds copied to clipboard

Convert-a-Card projects throwing an Internal Server Error

Open adikeinan opened this issue 5 years ago • 1 comments

Both Convert-a-Card projects (Chinese and Urdu) break when one clicks 'Search', on Chrome, IE and FireFox, when logged in or not. The error is: "Internal Server Error: Uh oh, something's broken. We will fix it as soon as we can."

adikeinan avatar Oct 31 '19 14:10 adikeinan

This issue was checked by Prayank Kulshrestha from NIIT:

Error Cause and Analysis:

  1. By clicking on the search button sends an ajax request to the backend (URL:https://backend.libcrowds.com/z3950/search/oclc/json). The request is being blocked due to the CORS policy. This happens usually on cross-domain requests.
  2. We have checked the Ngnix web server configuration file at location /etc/Ngnix, we found two configurations files with name “Ngnix.conf” and “Ngnix.config_vm_test”.
  3. In “Ngnix.conf” file, the required CORS policies are missing, where in “Ngnix.config_vm_test” file CORS policies are present. We are not sure that which configuration file is using by the Ngnix server. Ideally, Ngnix server should use “Ngnix.conf”, where CORS policy details are missing.
  4. We have checked PyBossa Backend server setting and configuration files and we didn’t find any suspicious CORS setting in the backend server. Please find the attached for the same.

Next step: add required CORS setting in Ngnix.conf file.

adikeinan avatar Sep 10 '20 13:09 adikeinan