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: validate granada feed through new GOT user-agent #177

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

Alessandro100
Copy link
Contributor

@Alessandro100 Alessandro100 commented Apr 10, 2024

Fixes #90

Certain feeds such as: https://mds.linkyour.city/gbfs/es_granada/gbfs.json block the default user-agent used by GOT. This PR changes the default user-agent to the format: MobilityData GBFS-Validator/{VALIDATOR_VERSION} (NOde {NODE_VERSION})

With the new user-agent header, this feed works
image

@Alessandro100 Alessandro100 self-assigned this Apr 10, 2024
Copy link

netlify bot commented Apr 10, 2024

Deploy Preview for gbfs-validator ready!

Name Link
🔨 Latest commit 56d013f
🔍 Latest deploy log https://app.netlify.com/sites/gbfs-validator/deploys/6616f4acf4db980008340366
😎 Deploy Preview https://deploy-preview-177--gbfs-validator.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@davidgamez davidgamez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Alessandro100 Alessandro100 merged commit 6588a77 into master Apr 16, 2024
7 checks passed
@Alessandro100 Alessandro100 deleted the fix/90-user-agent-fix branch April 16, 2024 19:33
@richfab
Copy link
Contributor

richfab commented Apr 17, 2024

Thank you for tackling this @Alessandro100! It's very valuable for the community 🙏

It seems that the issue is resolved on preview but not on prod. Can you check if the merge applied to production please? Thanks!

image

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.

Unable to validate Link Granada
3 participants