dedoussis / icloud-hide-my-email-browser-extension

Enjoy iCloud's Hide My Email service in your favourite browser
https://chrome.google.com/webstore/detail/icloud-hide-my-email/omiaekblhgfopjkjnenhahfgcgnbohlk
MIT License
319 stars 15 forks source link

Can't generate mail addresses: Request failed with status code 401 #61

Closed mietzen closed 1 week ago

mietzen commented 5 months ago

Since a couple of days I can't generate new mail addresses:

Error: Request to GET https://p109-maildomainws.icloud.com:443/v2/hme/list failed with status code 401

image

Browser: Firefox 126.0 (64-bit) macOS: 13.6.6 (22G630) (M1 Pro)

dedoussis commented 5 months ago

Thanks for reporting this @mietzen! I cannot reproduce on my machine with my personal iCloud account. Would you mind sharing the network logs of the extension? What does the response of GET /v2/hme/list look like?

See this guide on how to use the dev tools of firefox on add-ons: https://extensionworkshop.com/documentation/develop/debugging/

Once you open the dev tools window on the add-on, try navigating to the Manage emails view of the addon-on pop-up and then check the Network tab of dev tools.

dedoussis commented 5 months ago

Also, this endpoint is only used for listing previously generated emails. You should still be able to generate new addresses if you navigate to the Generate new email view of the popup.

mietzen commented 5 months ago

I tried debugging it, but all request and responses are empty?

image

Generating give the same error: Error: Request to POST https://p109-maildomainws.icloud.com:443/v1/hme/generate failed with status code 401

Edit:

All I got is a stack trace:

https://p109-maildomainws.icloud.com/v2/hme/list

request/< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:16683
r/< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:14382
r moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:14127
request moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:16612
listHme/< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:14822
r/< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:14382
r moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:14127
listHme moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:14754
Ma/</< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:121733
xa/< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:111774
xa moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:111519
Ma/< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:121644
rs moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:10:93231
xu moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:10:113363
448/ku/< moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:10:109965
x moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:1365
M moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:1896
(Async: EventHandlerNonNull)
53 moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:2065
n moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:13563
840 moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:3835
n moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:13563
448 moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:10:20
n moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:13563
935 moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:10:129277
n moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:13563
745 moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:10:128997
n moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:13563
<anonymous> moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:14094
<anonymous> moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:125419
<anonymous> moz-extension://51e27ea8-5f68-43ec-b6f3-3a46400a7aeb/popup.bundle.js:28:125423
dedoussis commented 5 months ago

@mietzen try disabling the pop-up auto hide from the top-right menu of devtools and retry the requests.

image

mietzen commented 5 months ago

That worked 👍 I removed the authentication cookies:

log.json

dedoussis commented 5 months ago

Interesting. Could you try singing out of icloud and signing back in?

mietzen commented 5 months ago

Already tried, also tried in chromium with the same result

mietzen commented 5 months ago

Did you push any changes lately? Because it started working again

dedoussis commented 1 week ago

@mietzen I did not push any changes that might have fixed this. Has this issue come up since your last comment?

mietzen commented 1 week ago

No, seems to have been a connection problem.

dedoussis commented 1 week ago

Ack, closing the issue.