Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #1

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

Open
m040601 opened this issue Feb 3, 2025 · 0 comments

Comments

@m040601
Copy link

m040601 commented Feb 3, 2025

Thanks for the work on this cli tool. Very, very usefull.

I assume you are ABGEO/takalandze also the maintainer of the Archlinux
PKGBUILD, https://aur.archlinux.org/packages/mailtm-bin. That's what I used to install.

I installed it, and add it seemed to be working fine for a couple of minutes.

I could create an account.
I got ~/.mailtm/config correctly populated.
I could login.
I could list the first message received.

I got some small error trying to see a single message.

$ mailtm message get XXX0e24587ca787f920XXXXX

Error: json: cannot unmarshal object into Go struct field Message.verifications of type []string

But it seemed to work.

I then send more emails (from other places ) to this temporary email address.

Then a couple of minutes later, I cant use mailtm anymore,

$ mailtm

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x83d1a5]

goroutine 1 [running]:
github.com/abgeo/mailtm/pkg/update.(*Manager).CheckUpdate(0xc000159e90)
        /home/runner/work/mailtm/mailtm/pkg/update/update_manager.go:38 +0xc5
main.main()
        /home/runner/work/mailtm/mailtm/cmd/mailtm.go:31 +0x186

A couple of minutes later it seems to work again.

Could it be some API limitation ?

Can you confirm that this version of the tool is working properly on your computer ?

Could it be that the tool needs an update or refresh ? The last release was 2 years ago.

$ gh thoseleases https://github.com/ABGEO/mailtm

TITLE   TYPE    TAG NAME  PUBLISHED
v0.3.1  Latest  v0.3.1    about 2 years ago
v0.3.0          v0.3.0    about 2 years ago
v0.2.0          v0.2.0    about 2 years ago
v0.1.0          v0.1.0    about 2 years ago

Thanks in advance.

PS: It uses the file ~/.mailtm/config to store the token.

Could you change it to use the more standard one, ~/.config/mailtm/config ?

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