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

FetchError: request to https://raw.githubusercontent.com/asyncapi/generator/v1.0.1/test/docs/dummy.yml #347

Closed
2 tasks done
emeraldhieu opened this issue Sep 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@emeraldhieu
Copy link

Describe the bug.

[~]$ ag https://raw.githubusercontent.com/asyncapi/generator/v1.0.1/test/docs/dummy.yml https://github.com/asyncapi/template-for-generator-templates -o output
(node:4244) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Something went wrong:
FetchError: request to https://raw.githubusercontent.com/asyncapi/generator/v1.0.1/test/docs/dummy.yml failed, reason: 
    at ClientRequest.<anonymous> (/Users/nguyenduchieu/.nvm/versions/node/v22.7.0/lib/node_modules/@asyncapi/generator/node_modules/node-fetch/lib/index.js:1501:11)
    at ClientRequest.emit (node:events:520:28)
    at emitErrorEvent (node:_http_client:103:11)
    at TLSSocket.socketErrorListener (node:_http_client:506:5)
    at TLSSocket.emit (node:events:520:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

Expected behavior

Succeed with no error

Screenshots

Screenshot 2024-09-04 at 11 15 23

How to Reproduce

Run

ag https://raw.githubusercontent.com/asyncapi/generator/v1.0.1/test/docs/dummy.yml https://github.com/asyncapi/template-for-generator-templates -o output

as described at https://github.com/asyncapi/template-for-generator-templates?tab=readme-ov-file#template-development-hints

🥦 Browser

Google Chrome

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

@emeraldhieu emeraldhieu added the bug Something isn't working label Sep 4, 2024
@emeraldhieu
Copy link
Author

emeraldhieu commented Sep 4, 2024

I tried again and got the incompatible version error.

Copy link
Member

derberg commented Sep 17, 2024

what ag version are you using. Also fetched resource is referenced correctly, are you sure you are not somewhere in internal company network behind some firewall that might block fetching?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants