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

Transactions not working #10

Closed
sandrokeil opened this issue Dec 8, 2018 · 3 comments
Closed

Transactions not working #10

sandrokeil opened this issue Dec 8, 2018 · 3 comments

Comments

@sandrokeil
Copy link

I've got the following error if I run this Unit Test (docker-compose run --rm vpack vendor/bin/phpunit --filter it_inserts_documents_at_once).

terminate called after throwing an instance of 'arangodb::velocypack::Exception'
  what():  Cannot execute operation without attribute translator

That's the JSON response

{
    "error": false,
    "code": 200,
    "result": {
        "rId0": [
            {
                "_id": "transactionCol\/843",
                "_key": "843",
                "_rev": "_XvI3Zgq--_",
                "new": {
                    "_key": "843",
                    "_id": "transactionCol\/843",
                    "_rev": "_XvI3Zgq--_",
                    "test": "valid"
                }
            },
            {
                "_id": "transactionCol\/847",
                "_key": "847",
                "_rev": "_XvI3Zgq--B",
                "new": {
                    "_key": "847",
                    "_id": "transactionCol\/847",
                    "_rev": "_XvI3Zgq--B",
                    "test2": "valid2"
                }
            },
            {
                "_id": "transactionCol\/849",
                "_key": "849",
                "_rev": "_XvI3Zgq--D",
                "new": {
                    "_key": "849",
                    "_id": "transactionCol\/849",
                    "_rev": "_XvI3Zgq--D",
                    "test3": "valid3"
                }
            }
        ]
    }
}
@sandrokeil
Copy link
Author

@martin-schilling The attribute translator (Line 37, 213, 234) can be added via Parser options.

@martin-schilling
Copy link
Owner

I just tried parsing the JSON above and it worked fine. So I tried running the unit test with the command you posted above and I did not get an error either. Do you have another example I can try?

@sandrokeil
Copy link
Author

It looks like an ArangoDB < 3.4.0 version issue. See travis.

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