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

file upload using createFromUrl does not work or hangs #13

Open
jorenvh1 opened this issue Oct 27, 2023 · 1 comment
Open

file upload using createFromUrl does not work or hangs #13

jorenvh1 opened this issue Oct 27, 2023 · 1 comment

Comments

@jorenvh1
Copy link

jorenvh1 commented Oct 27, 2023

We're using the @datocms/cma-client-node package with the createFromUrl function to upload images from a url.
If we run our code locally the execution hangs on the createFromUrl invocation.

After this log statement it just hangs:

[2] x-api-version: 3
[2] x-environment: primary-...
[2] x-queue-time: 0ms
[2] x-ratelimit-remaining: 58
[2] x-request-id: acb5f46f-f607-483e-80e6-9e9b06dd7dbd
[2] cf-ray: 81ca8bf6888ef96d-BRU
[2] {
  "data": {
    "id": "/61856/1698405594-image.jpg",
    "type": "upload_request",
    "attributes": {
      "url": "https://datosrl-images.s3.eu-west-1.amazonaws.com/61856/1698405594-image.jpg......"
    }
  }
}
@stefanoverna
Copy link
Member

Mh, our tests are green both on Node 16 and 18, and they cover this scenario.

Can you share a minimal script reproducing the issue? Did you upgrade to the latest package? What is the Node and npm version? Can you share your package-lock.json?

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