Http-Requests to billbee are not parsed correctly

When I’m trying to use a HTTP-Request to get some orders from Billbee, the json is not parsed correctly.

To explain that in more detail:

The CURL command is:

curl -L -o out.json -X Get -H “accept: application/json” -H “Authorization: Basic XXX” -H “X-Billbee-Api-Key: XXX” ‘https://app.billbee.io/api/v1/orders?minOrderDate=2024-07-04T00:00:00&maxOrderDate=2024-12-31T00:00:00&orderStateId=16

When I test this, the output is a JSON. Here just the most important part of it:

{
  "Paging": { ... },
  ...
  "Data": [
    {
      ...
      "CreatedAt": "2024-08-22T00:00:00",
      ...
      "BillBeeOrderId": 20000000079332415,
      "BillBeeParentOrderId": null,
      ...
  ]
}

As you can see, the BillbeeOrderId ends with a 5

If I apply the same quest in n8n (could version 1.55.3): the result is different. In explicitly, the parameter BillBeeOrderId is different:

{
  "Paging": { ... },
  ...
  "Data": [
    {
      ...
      "BillBeeOrderId": 20000000079332416,
      ...
  ]
}

Of course, this leads to fatal errors in the whole workflow.
At first i tought, it is a problem of the API of BillBee, but then I tested it with curl and there, everything is correct.

BillBee’s support says, this could be a parsing error. The field id is returned as integer (long64). Since javascript has problems with long number chains.

But I don’t know how to correct that within n8n.

I also tried to change the response-format in the node (to text or file), but this won’t help. The most important parameter of the request always is returned incorrectly.

I would appreciate if someone could help.
Thanks in advance!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

The problem occurs on the cloud system. Here is the Debug-Information:

Debug info

core

  • n8nVersion: 1.55.3
  • platform: npm
  • nodeJsVersion: 20.15.0
  • database: sqlite
  • executionMode: regular
  • concurrency: 999
  • license: community
  • consumerId: 00000000-0000-0000-0000-000000000000

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 2500 executions

Generated at: 2024-08-23T14:23:27.277Z

Welcome to the community @Tobias :tada:
This might be a bug, I’ll pass this on internally. Thanks for reporting!

Hi Aya,
thank you very much. If you need more information, I can share with your team more details (PN me for that)…
For us it is essential to solve this bug, because as you can imagine without a correctly working request, our workflow will be useless.
So don’t hesitate to contact me, if you need further information or a demonstration.
Thanks in advance and all the best,
Tobias

Hi Tobias, Of course, I’ll ask internally to see if there’s a workaround for this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.