My Products
Help

Upload document to voucher errorfailedToFetchDatabaseServerUrlF

by eMonkey developers

Hi, I'm having troubles with uploading a smll testing document to voucher.

My payload:

"query": "mutation {useCompany(no: 4****8) { voucher_processings { addNewDocument (filter: {_and:[ {batchNo : {_eq : 1 }}, {voucherNo : {_eq : 1 }}]}, args: {fileName : \"test.txt\",description : \"desc\", fileBytes : \"dGVzdA==\"}) {succeeded}} incomingAccountingDocumentAttachment_processings {uploadToFileService (filter: {fileName: {_eq: \"test.txt\"}}, args: {connectToken: \"***\"}){succeeded}}} }"

 

Error

"message": "Error: External integration error."

"status": 3,
"status_name": "failedToFetchDatabaseServerUrlFromContextService"

I tried without the incomingAccountingDocumentAttachment_processings but got the same error.
Anyone else had the same problem?

3 REPLIES 3
omelhus
PARTNER

by omelhus

@Marius Bancila Maybe this issue should have a better error message? 

by Marius Bancila

I agree the message is obscure. I will add a ticket in our backlog to see how we can improve this.

Accepted solution
omelhus
PARTNER

by omelhus

Verify that your service or user has access to the company number you are trying to use. Use availableCompanies to check.