hirosystems / connect

A library for building excellent user experiences with Stacks.
https://connect.stacks.js.org
MIT License
76 stars 40 forks source link

While connecting to leather wallet it's giving me private key length is not valid (it only happens on react build hosted on server,works fine local ) #366

Open HEGADE opened 5 months ago

HEGADE commented 5 months ago

*Describe the bug

Environment: Development environment deployed using Docker on a Digital Ocean droplet. Frontend is a React build.

Expected Behavior: When connecting the wallet to the frontend using stacks.js , the connection should be successful, regardless of whether the frontend is running locally or served from the server itself.

Actual Behavior: Local Frontend: wallet gets connected successfully

Server-Hosted Frontend: fails with the error message " Error during auth request Error: Improperly formatted private-key. Private-key byte length should be 32 or 33. Length provided: 390".

Request for Assistance I'd appreciate any help or insights into further troubleshooting this "private key has no valid length" error that specifically occurs when running the React build from the server.

image

Desktop (please complete the following information):

janniks commented 5 months ago

This seems to have been fixed when switching http to https for the site hosting Connect. This issue will be used to investigate more and figure out if it's possible to fix this.