MobilityData / gbfs-validator

The canonical GBFS validator. Maintained by the GBFS community, facilitated by MobilityData.
https://gbfs-validator.mobilitydata.org/
Apache License 2.0
18 stars 12 forks source link

fix: validate granada feed through new GOT user-agent #177

Closed Alessandro100 closed 4 months ago

Alessandro100 commented 4 months ago

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

netlify[bot] commented 4 months ago

Deploy Preview for gbfs-validator ready!

Name Link
Latest commit 56d013f8f9ec3e20459e337a523c24657998b6ba
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.

richfab commented 4 months ago

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