PipedreamHQ / roadmap

Pipedream is an integration platform for developers. Have a feature request or bug to report? Add it here.
https://pipedream.com
30 stars 5 forks source link

[BUG] Airtable Get Records Action does not work with sort param #473

Closed raunakk closed 4 years ago

raunakk commented 4 years ago

Describe the bug When the sort param is passed to the Airtable Get Records Action, it returns a 422 error.

To Reproduce Steps to reproduce the behavior:

  1. Create a new workflow with List Records Action from Airtable ( /GET lists records in a table)
  2. Specify a column to sort on
  3. Send a test event to execute the action
  4. See error

ErrorRequest failed with status code 422 at null.createError (/tmp/ee/node_modules/axios/lib/core/createError.js:16:15) at null.settle (/tmp/ee/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/tmp/ee/node_modules/axios/lib/adapters/http.js:236:11) at IncomingMessage.emit (events.js:203:15) at null.endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) Expected behavior

A clear and concise description of what you expected to happen.

The url created has: &sort[]=%7B%22field%22:%22Created%22,%22direction%22:%22asc%22%7D where as, as per the documentation, it should have: sort%5B0%5D%5Bfield%5D=Created&sort%5B0%5D%5Bdirection%5D=asc

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

dylburger commented 4 years ago

Thank you for raising this @raunakk . We're looking into this and will fix ASAP.

dylburger commented 4 years ago

Hi @raunakk , we've shipped a new version of this action that should implement a fix for the sort param.

Would you mind adding the List Records action to your workflow, and give it another try? You can also copy this example workflow, which exposes a sample value for the sort param, with an example Name field.

Let me know if that doesn't work and I'll look into the issue further.