yaac icon indicating copy to clipboard operation
yaac copied to clipboard

getAccount(): Undefined array key "initialIp"

Open ishamshur opened this issue 1 year ago • 5 comments

When initializing the Client class, the method - getAccount() is called, which throws an exception - Undefined array key “initialIp” return new Account($data['contact'], $date, ($data['status'] == 'valid'), $data['initialIp'], $accountURL);

ishamshur avatar Dec 06 '24 09:12 ishamshur

Not sure what's suddenly causing this (haven't been able to find a change on let's encrypt's side yet) but I've temporarily duct taped it with:

src/Client.php r355 -> return new Account($data['contact'], $date, ($data['status'] === 'valid'), $data['initialIp'] ?? '', $accountURL);

douw3rd avatar Dec 06 '24 15:12 douw3rd

According to RFC 8555, there is no 'initilIp' property in Account object.

Astyk avatar Dec 07 '24 09:12 Astyk

Found this regarding the issue: https://community.letsencrypt.org/t/has-the-output-of-initialip-changed-in-the-account-directory/229823

So the "duct tape" solution of @douw3rd seems a good way to go for now

d00p avatar Dec 09 '24 08:12 d00p

Looks like this repository is no longer supported. Has anyone made a fork with a fix for this bug?

ishamshur avatar Dec 13 '24 10:12 ishamshur

@ishamshur my fork has the fix that solves the bug, i also created a PR, i think as soon as the maintainers have time they will fix the problem.

bessone avatar Dec 13 '24 11:12 bessone