Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert-a-Card projects throwing an Internal Server Error #855

Open
adikeinan opened this issue Oct 31, 2019 · 1 comment
Open

Convert-a-Card projects throwing an Internal Server Error #855

adikeinan opened this issue Oct 31, 2019 · 1 comment

Comments

@adikeinan
Copy link
Member

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 adikeinan added this to the Convert-a-Card 2020 Fixes milestone Sep 10, 2020
@adikeinan
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant