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

node compat: npm:arangojs fails from Deno v1.34.2 #20033

Closed
osddeitf opened this issue Aug 3, 2023 · 1 comment
Closed

node compat: npm:arangojs fails from Deno v1.34.2 #20033

osddeitf opened this issue Aug 3, 2023 · 1 comment

Comments

@osddeitf
Copy link
Contributor

osddeitf commented Aug 3, 2023

I run into an issue where the HTTP request was sent with Transfer-Encoding: chunked.
See: arangodb/arangodb#19520

I remember the package npm:arangojs worked in the past (around 2 months ago) for me. So I tried to downgrade Deno and found out that the issue disappeared when I use Deno version < v1.34.2.

Here is my reproduction:

import arangodb from 'npm:arangojs';

let mydb = new arangodb.Database()
mydb = await mydb.createDatabase('my-test-database-3')

console.log('create collection')
const accounts = mydb.collection('accounts')
if (!(await accounts.exists())) {
  await accounts.create({ })
}

console.log('begin transaction')
const trx = await mydb.beginTransaction([ accounts ])
await trx.step(() => accounts.save({ name: 'whatever' }))
await trx.commit()

Quick setup a arangodb instance with docker-compose.yml:

services:
  arangodb:
    image: arangodb/arangodb:3.11.2
    # container_name: arangodb
    command:
    - --rocksdb.limit-open-files-at-startup
    # - --database.auto-upgrade
    environment:
      - ARANGO_NO_AUTH=1
      - ARANGODB_OVERRIDE_DETECTED_TOTAL_MEMORY=600m
    ports:
      - 8529:8529
    # volumes:
    #   - ./data:/var/lib/arangodb3
@osddeitf
Copy link
Contributor Author

osddeitf commented Aug 4, 2023

I'll close this in favor of #20063.

@osddeitf osddeitf closed this as completed Aug 4, 2023
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

1 participant