Issue: 502 Error when running Fynd extension on localhost using trycloudflare.com on windows system
FDK CLI version: 6.2.1
When I run the command fdk extension preview, the extension preview URL opens, but nothing appears on the screen. Upon inspecting the Network tab in the DevTools, I noticed that the URL trycloudflare.com is showing a 502 Bad Gateway error.
I am currently using fdk-extension-javascript:v0.6.0 for my extension and it was working fine with command “fdk extension preview-url -p 3000”, but I am facing issues with the fdk login command on the older fdk-cli version, which is not working.
Could you please update to the latest version and try logging in via the Chrome browser using the command:
fdk login
If you encounter any issues during the login process, such as errors, logs, or unexpected behavior, kindly share the details so we can assist you in resolving them.
To start your extension using the new fdk-cli version with older code, please follow these steps:
Start a Tunnel:
Run the following command to create a tunnel and get the URL:
fdk tunnel --port PORT
Set the Launch URL:
Use the obtained tunnel URL to update the partner panel:
fdk extension launch-url set --url TUNNEL_URL
Additionally, I recommend migrating your older code version to be compatible with the new fdk-cli version. You can follow the migration documentation for this process: