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

[Critical] Wallet keys are not created #104

Open
leobz opened this issue Jan 4, 2024 · 0 comments
Open

[Critical] Wallet keys are not created #104

leobz opened this issue Jan 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@leobz
Copy link
Member

leobz commented Jan 4, 2024

Summary

Wallet key creation is not working. This produces a failure in the creation of new users.

Reason: The endpoint currently used to create keys (" GET https://legend.lnbits.com/wallet?nme=Bookmark") returns the following error "Missing user ID or access token."

Technical Details

Code

  def get_new_wallet_key do
    {:ok, response} =
      Req.request(
        url: "https://legend.lnbits.com/wallet?nme=Bookmark",
        method: :get
      )

    key =
       ...
            Regex.run( 
              ~r/Admin key: <\/strong><em>(.*)<\/em>/,
              response.body
            )
        ...
    key
  end

Error

** (FunctionClauseError) no function clause matching in Regex.run/3                                                                                                                  
  (elixir 1.14.3) lib/regex.ex:335: Regex.run(~r/Admin key: <\/strong><em>(.*)<\/em>/, %{"detail" => "Missing user ID or access token."}, [])
    (bookmark 0.1.0) lib/bookmark_web/controllers/wallet_controller.ex:45: BookmarkWeb.WalletController.get_new_wallet_key/0                  
@leobz leobz self-assigned this Jan 4, 2024
@leobz leobz added the bug Something isn't working label Jan 4, 2024
@leobz leobz changed the title [Critical] Wallet kes are not created [Critical] Wallet keys are not created Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant