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

Add support for multiple substrate urls #32

Merged

Conversation

sameh-farouk
Copy link
Member

@sameh-farouk sameh-farouk commented Jan 20, 2025

@sameh-farouk sameh-farouk marked this pull request as ready for review January 21, 2025 11:19
@sameh-farouk sameh-farouk changed the title add support for multiple substrate urls Add support for multiple substrate urls Jan 21, 2025
@sameh-farouk
Copy link
Member Author

Tested with this TFCHAIN_WS_PROVIDER_URL value

TFCHAIN_WS_PROVIDER_URL=wss://tfchain.down.grid.tf,wss://tfchain.02.grid.tf

Logs:

tf_kyc_api  | {"time":"2025-01-21T11:31:44.835499003Z","level":"DEBUG","msg":"Setting up services"}
tf_kyc_api  | {"level":"debug","url":"wss://tfchain.down.grid.tf","time":"2025-01-21T11:31:44Z","message":"connecting"}
tf_kyc_api  | 2025/01/21 11:31:44 Connecting to wss://tfchain.down.grid.tf...
tf_kyc_api  | {"level":"error","error":"error connecting to substrate at 'wss://tfchain.down.grid.tf': remote error: tls: internal error","time":"2025-01-21T11:31:44Z","message":"failed to connect to endpoint, retrying"}
tf_kyc_api  | {"level":"debug","url":"wss://tfchain.02.grid.tf","time":"2025-01-21T11:31:45Z","message":"connecting"}
tf_kyc_api  | 2025/01/21 11:31:45 Connecting to wss://tfchain.02.grid.tf...
tf_kyc_api  | {"time":"2025-01-21T11:31:45.257056964Z","level":"DEBUG","msg":"Setting up routes"}

@sameh-farouk sameh-farouk merged commit 0cfb2d8 into development Jan 21, 2025
1 check passed
@sameh-farouk sameh-farouk deleted the development-add-support-for-multiple-substrate-urls branch January 21, 2025 11:47
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

Successfully merging this pull request may close these issues.

2 participants