Skip to content

Mint info endpoint crashes eNuts iOS #366

@jblachly

Description

@jblachly

Describe the bug
My mint returns the following JSON:

{"name":"moksha-test","pubkey":"020b718d4085b8c3c96c090d76939f48bcce7b3c6a9ad2b728cd37c4a3768bf450","version":"0.2.1-","contact":[],"motd":"No MOTD","nuts":{"4":{"methods":[{"method":"bolt11","unit":"sat","min_amount":1,"max_amount":10000000}],"disabled":false},"5":{"methods":[{"method":"bolt11","unit":"sat","min_amount":1,"max_amount":10000000}],"disabled":false},"7":{"supported":false},"8":{"supported":true},"9":{"supported":false},"10":{"supported":false},"11":{"supported":false},"12":{"supported":false},"13":{"supported":false},"14":{"supported":false},"15":{"supported":false},"16":{"supported":false},"17":{},"18":{"supported":true,"methods":[{"method":"btconchain","unit":"sat","min_amount":10000,"max_amount":1000000,"min_confirmations":1}]},"19":{"supported":true,"methods":[{"method":"btconchain","unit":"sat","min_amount":10000,"max_amount":1000000}]}}}

This crashes both the stable AppStore version 0.3 as well as the latest testflight beta -- the screen turns white and the app must be killed and restarted.

To Reproduce
Steps to reproduce the behavior:

Serve this content dynamically or statically for a mint

Expected behavior

I expect eNuts to at a minimum complain about missing data, malformed data, etc.; rather than to crash.

Screenshots

WSOD (White screen of death)

Smartphone (please complete the following information):

  • Device: iPhone 11 pro max
  • OS: 17.5.1
  • Browser: safari
  • Version no idea

Additional context

Moksha latest commit ngutech21/moksha@6b07c8d

Reverse proxy with Letsencrypt cert

Mint works fine with web wallet https://wallet.cashu.me

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions