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

Fix Issue 162 HTTP 403 Forbidden Error and File Not Found Error #168

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

philcaz
Copy link

@philcaz philcaz commented Oct 15, 2024

Fix HTTP 403 forbidden error by defining request headers that mimics Google Chrome request.
Fix journals/journal_abbreviations_mathematics.csv file not found error by adjusting relative path

The pull request should now closes #162

Phikho-cc and others added 3 commits October 15, 2024 19:35
Fix HTTP Errorr 403 by defining user agent that mimics browser request.

Fix relative path to journal_abbreviations_mathematics.csv
Remove the print(os.getcwd()) statement for path debugging.
Consolidate user request header by mimicing google chrome
@Siedlerchr
Copy link
Member

Yeah, thanks for the fix, will try this!

@Siedlerchr Siedlerchr merged commit f8a8674 into JabRef:main Oct 15, 2024
3 checks passed
@Siedlerchr
Copy link
Member

There was an issue with the path, the thing is the gh action runs in the main project dir, so the .. was wrong

@philcaz
Copy link
Author

philcaz commented Oct 16, 2024

Oh sorry about that because I got into the FileNotFound Error when running the file under /scripts. Should I change the path back to the original or has it been fixed now?

@northword
Copy link
Contributor

northword commented Oct 16, 2024

Oh sorry about that because I got into the FileNotFound Error when running the file under /scripts. Should I change the path back to the original or has it been fixed now?

run script in project root instead of ./scripts/

such as:

python ./scripts/update_ubc.py

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

Successfully merging this pull request may close these issues.

math sci net 403: forbidde
5 participants