question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Datamapper fails with split in some cases

See original GitHub issue

This is a…


[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Documentation issue or request

Description

We have had problems with datamapper causing errors when using split and aggregate steps. You can import this integration to see the error: https://drive.google.com/open?id=1aNSEt21U-NW8tyUrGo5JbL23V_tkNMQc Since it’s an API provider, you need to invoke the flow with:

curl -X POST <url> -d '[{"id":2,"completed":1,"task":"task2"},{"id":3,"completed":1,"task":"task3"}]'

This is the resulting stacktrace (there are multiple errors so choose one you find most useful 😄): i-todo-integration-post-collection-2-6qkd4.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:33 (32 by maintainers)

github_iconTop GitHub Comments

2reactions
mmuzikarcommented, Jul 18, 2019

Thanks @gashcrumb this resolved my issue, let’s see if it does the same to @mmelko

1reaction
asmigalacommented, Jul 17, 2019

@gashcrumb small correction: this is the correct schema with the POST multiple operation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Atlas Map step fails to load in some cases #5622 - GitHub
Trying to add a data mapper step between a Get a specific Event and Create Event , an error message is shown instead...
Read more >
datamapper how to one to many mapping?
Split gave me an arrey of strings but i have no idea how to assign them to the output. I tried both visual...
Read more >
Reference: Data Mapper Troubleshooting (Magic xpi 4.13)
If you enter only the 'Source/S4/CASE/row/Fields/AccountId' Source node, it works correctly. However, if you use it within an expression, the problem occurs.
Read more >
Data Mapper pattern, exceptions, and handling user-provided ...
Here's a quite strict solution to the problem you describe: ... $comma . sprintf(qtt("'%s' is absent"), $error[0]); break; case ...
Read more >
Does it break SRP to have concerns of data handling and ...
Can DataMapper pattern contain all of the above concerns inside a single class, or must it split each concern into their own separate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found