Why is my Python code to connect to Bybit for BTC price working locally but failing with a 403 error on the platform?

This topic was automatically generated from Slack. You can find the original thread here.

Hello,
I’m trying to run a python code which is run perfectly on my local machine, but it’s not working working on the platform and giving me an error message.
I’m trying to connect to Bybit website to get latest price of BTC. As i mention when i run same cod locally on ny PC it’s fine but not on website

Please help
error message:

…cannot ticker bybit GET https://api.bybit.com/v5/asset/coin/query-info? 403 Forbidden

ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.


The Amazon CloudFront distribution is configured to block access from your country. We 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.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: AZquNGIW4pYqG6ttr1C_O4JtoSCM4_gJSiPShEsAkoZpfj9MXMS6uA==

Hi, I think your question is a great case for Pipedream bot to help. I’ll pass your question to the Pipedream bot now. Please feel free to ask it any question

can you help?

I understand that you’re having trouble connecting to the Bybit API and receiving a 403 Forbidden error. This error is related to the Amazon CloudFront distribution blocking access from your country. To resolve this issue, you can try using Pipedream’s pre-built Bybit components. Here’s how to use them: 1. In your Pipedream workflow, search for the Bybit app from the step menu. 2. Select the desired Bybit action (e.g., ByBit Generic Market Symbols). 3. Connect your Bybit account. 4. Configure any required parameters. 5. Click “Test” at the bottom of the step to run the action and test the configuration. If you still face issues or need help with a specific Bybit action, please let me know.

is bybit pre built in is available for free version?

Yes, the pre-built Bybit components are available for free on Pipedream. You can use them in your workflows without any additional cost. To use them, simply search for the Bybit app in the step menu and select the desired action. Then, connect your Bybit account and configure any required parameters.

Not correct i searched it but it’s not in the list