PipedreamHQ / pipedream

Connect APIs, remarkably fast. Free for developers.
https://pipedream.com
Other
8.94k stars 5.27k forks source link

[BUG] 403 error when using pre-built Bybit actions #5641

Open Menacing-Salt opened 1 year ago

Menacing-Salt commented 1 year ago

Describe the bug A clear and concise description of what the bug is. Since the 28th of February I have been getting a 403 error when using the pre-built Bybit actions.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'workflows' and select 'New' to add a new workflow
  2. Click on 'add trigger' and choose one
  3. Click on 'add a step' and select a pre-defined Bybit action, for example 'generic_wallet_balance'
  4. See error

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

Error log Error - Request failed with status code 403 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\nERROR: The request could not be satisfied\n\n

403 ERROR

\n

The request could not be satisfied.

\n<HR noshade size=\"1px\">\nBad request.\nWe can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.\n<BR clear=\"all\">\nIf you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.\n<BR clear=\"all\">\n<HR noshade size=\"1px\">\n
\nGenerated by cloudfront (CloudFront)\nRequest ID: rU4108pIUVZa4M2V27t7uqfA1GtBWq7aZhd89cj7qewni3FUVIpxIw==\n
\n
\n
\n" DETAILS at null.createError (/tmp/pdg/dist/code/66230d0253dc7564420f0162c6eb9942b9dab4ce88291bcb7b2bba9c05fb5238/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15) at null.settle (/tmp/pdg/dist/code/66230d0253dc7564420f0162c6eb9942b9dab4ce88291bcb7b2bba9c05fb5238/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/tmp/pdg/dist/code/66230d0253dc7564420f0162c6eb9942b9dab4ce88291bcb7b2bba9c05fb5238/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (events.js:412:35) at null.endReadableNT (internal/streams/readable.js:1333:12) at process.processTicksAndRejections (internal/process/task_queues.js:82:21)

Desktop (please complete the following information):

vunguyenhung commented 1 year ago

Hello @Menacing-Salt, I can reproduce this issue. I'll add this to Pipedream prioritized backlog

image
jcortes commented 1 year ago

When tried to setup Google Two-Factor Authentication by sending the verification code to the email, I got

 -200: TypeError: Failed to fetch

So I was not able to get the authentication in order to create an API Key! Blocked!

krypston104 commented 1 year ago

I am suffering the same error and would like to add some info that could be worth:

Describe the bug

All the API calls to Bybit using a GET method return a 403 error (attached below). This happens with all of them. For instance:

All the POSTmethods work fine. It is only a GETproblem. Therefore, it is not an IP problem, as it was confirmed to me by Bybit support. They mentioned these three possible causes for such an error:

the last two ones can be discarded, as I made sure that was not the case. So it seems the GET request needs to have some body in it as far as I can understand, though there is no possibility to amend that in the pipedream workflow interface.

Here is the link to the Bybit API error codes explained, which further confirms my idea:

https://bybit-exchange.github.io/docs/v5/error#:~:text=403,empty%20json%20body

I also found a stack overflow thread already talking about this issue on a similar case:

https://stackoverflow.com/questions/978061/http-get-with-request-body

This is my understanding of the case. However, my knowledge is limited and I could be getting something wrong.