deltree
deltree
RRailway
Created by deltree on 11/18/2024 in #✋|help
Cannot reach external API with simple flask app
Sorry if its a dumb question but im new and testing out railway. I made a simple flask app to pull some data from the binance: def get_funding_rate(): url = 'https://fapi.binance.com/fapi/v1/fundingRate?symbol=BTCUSDT&limit=100' response = requests.get(url) if response.status_code == 200: return response.json() return None Run locally its fine, but whenever i deploy to railway, it cannot communicate with the api, what do i need to do to communicate with an external api?
10 replies