gbfs-validator icon indicating copy to clipboard operation
gbfs-validator copied to clipboard

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

Open kikutano opened this issue 2 years ago • 2 comments

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!

kikutano avatar Feb 18 '23 09:02 kikutano

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

PierrickP avatar Feb 20 '23 16:02 PierrickP

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.

kikutano avatar Feb 20 '23 16:02 kikutano