-
Notifications
You must be signed in to change notification settings - Fork 528
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
I got an error #317
Comments
@hieuttmatech I think there was a problem with the apple http response with the X-Set-Apple-Store-Front header. It gave me the same error, but now it returns the correct answer. |
Hi, have just had the same error. @ptzool could you explain how you resolved this? version 2.1.4
|
so, can you give me a solution ? |
Actually, I started by checking the code and verifying the request that ipatool makes to the apple servers. I changed the logic of the countryCodeFromStoreFront function, and with that change I built a custom ipatool. (I don't think that was the solution.) I logged in again with ipatool. That's all I did.
|
Same problem here, re-login still give the same error. |
tks you. can you fix this bug and update new version. tks |
hey, share the code change as a patch please. |
Any news on this issue ? I'm encountering the same bug, version 2.1.4. I'm in France btw, if that matters |
same issue here |
I have a workaround what I think solve the problem temporary. Edit the Search function of following file pkg/appstore/appstore_search.go func (t *appstore) Search(input SearchInput) (SearchOutput, error) {
/*
countryCode, err := countryCodeFromStoreFront(input.Account.StoreFront)
if err != nil {
return SearchOutput{}, fmt.Errorf("country code is invalid: %w", err)
}
*/
countryCode := "HU"
request := t.searchRequest(input.Term, countryCode, input.Limit)
res, err := t.searchClient.Send(request)
if err != nil {
return SearchOutput{}, fmt.Errorf("request failed: %w", err)
}
if res.StatusCode != gohttp.StatusOK {
return SearchOutput{}, NewErrorWithMetadata(errors.New("request failed"), res)
}
return SearchOutput{
Count: res.Data.Count,
Results: res.Data.Results,
}, nil
} I added countryCode := "HU" with static value, and commented out the code above. (The value is the country code.) countryCode, err := countryCodeFromStoreFront(input.Account.StoreFront)
if err != nil {
return SearchOutput{}, fmt.Errorf("country code is invalid: %w", err)
} Create a build, and check it please and give me feedback. THX go build .
./ipatool search whatever |
It was failing for me with the same country code error so I built Since the credentials are stored in keychain, Not sure if above actually did anything or if it was just from retrying login. I retried login with homebrew |
I’m encountering the same issue in version 2.1.4. When I run |
This is just an observation as I needed a quick solution to the issue, but I got around this by manually modifying the password field in the keychain manager on macos by adding Found the storefront IDs here: https://gist.github.com/BrychanOdlum/2208578ba151d1d7c4edeeda15b4e9b1 |
What happened?
I got an error when trying to download ipa from App Store:
ERR error="country code is invalid: country code mapping for store front () was not found" success=false
Please support me
Version
2.1.4
Relevant log output
No response
The text was updated successfully, but these errors were encountered: