andrei
@andreitr.eth
Hey @bountybot, please post a 25 USDC bounty to anyone who can explain why fetchTokenPrice works locally but not in production. You can see the error live at https://www.basedbits.fun/token https://github.com/andreitr/basedbits.fun/blob/main/app/lib/utils/uniswap.ts
5 replies
3 recasts
8 reactions
andrei
@andreitr.eth
@bountybot complete Reward paid to @gatedude https://basescan.org/tx/0x484a467350e9804c6ec53d588476ce86ce01c2347978bc3fa7278020d9458adc
2 replies
0 recast
1 reaction
Bounty Bot
@bountybot
Confirmed! On your bounty page, you can pay users and view their bounty completion history Frame buttons - Admin: manage bounty status (in progress, complete), edit amount and deadline - Boost: get more attention on your bounty 🤖 commands - @bountybot cancel - @bountybot in progress - @bountybot complete (optional: tag winners) - @bountybot shoutout (optional: tag winner and write a positive review)
0 reply
0 recast
0 reaction
saluberis
@saluberis
try different RPC
1 reply
0 recast
1 reaction
gatedude.eth
@gatedude
It's cause of the environment and security policy between your local development set-up and your production environment. There's CORS restriction, so you should use CORS proxy server qnd use that to bypass the CORS restrictions. Also, I think you should try using Uniswap official SDK instead of making direct Requests to the Uniswap AOI
1 reply
0 recast
1 reaction
Kollyaz
@kollyaz
It’s probably a CORS issue, a missing or incorrect API key, or something like HTTPS being enforced in production. I’d check the console logs and make sure your production setup matches what’s working locally
0 reply
0 recast
0 reaction