Forum Discussion

itqandas's avatar
itqandas
New Contributor
2 months ago

candlesticks 404 (Not Found) via proxy

Please help regarding connection issues, trying to access candlestick REST API data from Swagger. I'm using a webcontainer artifact to get the data, but my browser dev console shows the following error:

.preview-script.js:1 
 POST https://zp1v56uxy8rdx5ypatb0ockcb9tr6a-oci3--5173--fb22cd3d.local-credentialless.webcontainer-api.io/proxy/candlesticks 404 (Not Found)

I'm trying to fetch data from here, my external browser successfully obtains the data frontend: https://frontend-api-v3.pump.fun/candlesticks/DYQAFCQaNjLdx61TgvhxD9tJmar8D2WjW2JwkQYgpump?offset=0&limit=100&timeframe=1

Is there some kind of strict origin or security measures preventing backend API calls for which I need authorization or authentication due to these invalid requests?

Can someone guide me to correct headers, request bodies and required fields for REST API?

2 Replies

  • Hi itqandas,

    Thanks for reaching out. I’m not entirely sure how this issue is related to API Hub. Could you please provide more details about where you’re seeing the problem within API Hub?
    This will help me better understand the situation and assist you more effectively.

    In case you're using an external API, you can reach out to the provider to provide you with a possible authorization or authentication method. 

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    Yes, I agree with Tom_S.  However, I will make a guess and say that maybe there is an issue with your proxy.  If I click on the link you provided data is returned in the browser.  Have you checked the usual things on your proxy like (Routing), DNS and Firewall rules?