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

The source code compile fine, but get alway "Proxy error: Could not proxy request" #91

Open
kikutano opened this issue Feb 18, 2023 · 2 comments

Comments

@kikutano
Copy link

Hello to everyone,
I've downloaded and compiled the source code, but when I try so put the url, for some reason I got this error:

Proxy error: Could not proxy request /validator from localhost:8080 to http://localhost:9000/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

I tried everything I could, but nothing works. Can someone tell me how to fix this error? Thanks!

@PierrickP
Copy link
Collaborator

PierrickP commented Feb 20, 2023

Hello, sorry for the trouble.

First, if you just want to use the validator, you can use the hosted version on https://gbfs-validator.netlify.app/

It seems, the problem is on your side. I would love to help you and others may also have the same problem.

  1. Did you try at home / personal computer (to avoid corporate firewall and divers possible securities)?
  2. What is your NodeJS version ? Mac / windows ?
  3. Did you try https://stackoverflow.com/questions/45367298/could-not-proxy-request-pusher-auth-from-localhost3000-to-http-localhost500 ?
  4. Can you try with by fixing the version on netlify-lambda to 2.0.15 (don't forget to re-install deps). They may add a bug in the latest 2.0.16 version

Best

@kikutano
Copy link
Author

Hi @PierrickP,
unfortunately I need to compile the service because I need to check the GFBS offline. Anyway I can use your code by bypassing the UI and using the CLI. In this way it works!

  1. Yes.
  2. Node JS 14.17.5
  3. Yes, without results!
  4. I can try this one ok.

By the way, using directly the CLI I can parse the GBFS.json (hosted on https://www.npoint.io/) file without any problem! I will try some of your suggests. Thanks.

tdelmas added a commit to tdelmas/gbfs-validator that referenced this issue Jun 29, 2023
…2243

5f12243 Patch manifest.json (MobilityData#91)

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 5f12243d5735a608eef697212a627b9090eea31a
richfab pushed a commit that referenced this issue Jun 29, 2023
* Git ignore for schemas subtree

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Squashed 'gbfs-validator/versions/schemas/' changes from 5273f96..22b058d

22b058d fix: incorrect spec for "languages" property in system_information.json (#90)
e9d891b Refer to later versions in gbfs_versions.json (#87)
fbd3ced Add v3.0 to v3.0-RC schemas (#88)
ef0d9a6 Fix schemas for v3.0-RC (#85)
2b6ad1e FIX: replaces name field with localized string (#82)
abe71f2 Fix invalid json, no trailing commas (#83)
f43170e V3.0-RC Schemas  (#79)
680df70 Update pr-to-project.yml
c2c30a2 Typo fix in geofencing_zones.json (#78)
c9be765 Create pr-to-project.yml
0a17875 Create issues-to-project.yml
30e5a3a Update README.md

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 22b058dc4a358baf451e006cde74775075929b3d

* remove dot files in schemas

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* v3-RC validation

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Remove unused file

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Add `serverOpts` required in Windows

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Fix typo `recommended`

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* update test for 3.0-RC , 3.0 and upcoming minor versions

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* fix after rebase

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Recommended.

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>

* Squashed 'gbfs-validator/versions/schemas/' changes from 22b058d..5f12243

5f12243 Patch manifest.json (#91)

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 5f12243d5735a608eef697212a627b9090eea31a

---------

Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>
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

No branches or pull requests

2 participants