Skip to content
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

Why I got this error when calling NewClientWithDefaultMainnet #326

Open
thachletopebox opened this issue Dec 11, 2024 · 1 comment
Open

Comments

@thachletopebox
Copy link

networks := map[string]*liteapi.Client{}
var err error
networks["-239"], err = liteapi.NewClientWithDefaultMainnet()
if err != nil {
t.logger.Errorf("Error creating TON mainnet client: %v", err)
}

the error response "Error creating TON mainnet client: invalid character '\u003c' looking for beginning of value","time":"2024-12-11T17:21:34+07:00"

@mn13
Copy link

mn13 commented Dec 11, 2024

+1 it's happened today

Update:
It happens in downloadConfig in calling GET on https://ton.org/global.config.json for some reason it returns 403 sometimes (suspiciously often when initializing client).

Possiblе solution may be using FromEnvsOrMainnet to set liteservers in env

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

2 participants