Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading *.btcpay plugin packages fails in local environment, 302 redirect is not followed #22

Open
rockstardev opened this issue Sep 29, 2024 · 1 comment

Comments

@rockstardev
Copy link
Member

When the Download method is invoked, we return a 302 redirect to the URL of the *.btcpay package:

When running btcpayserver-plugin-builder locally and hitting this method from another local BTCPay Server instance (in debug mode), the result is an HTTP 302 response to:
http://127.0.0.1:32827/satoshi/artifacts/admin-pass-reset/3/*.btcpay

On the other hand, using the default instance (https://plugin-builder.btcpayserver.org) returns an HTTP 200 with the content of the *.btcpay package.

image

This isn’t a showstopper, as you can manually download the package and place it in the Roaming\BTCPayServer\Plugins\ folder. However, the different behavior complicates testing and debugging. I'm documenting this for future exploration and better understanding of why this happens.

@rockstardev
Copy link
Member Author

I did debug how AllowAutoRedirect of HttpClient... and it is set to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant