Skip to content

Invalid URL: Port number is missing in the URL when using Ankr’s Sui Mainnet RPC URL #19382

@273million

Description

@273million

I’m experiencing a “Port number is missing in the URL” error when trying to connect to Sui Mainnet using Ankr’s RPC URL. I have tried different configurations, including appending :443 to the URL and switching from HTTPS to HTTP, but the issue persists.

Thank you for your help, saw also others having the issue, but couldn't see the solution there.

Steps to Reproduce Issue

$ sui client new-address ed25519

Config file ["/Users/./.sui/sui_config/client.yaml"] doesn't exist, do you want to connect to a Sui Full node server [y/N]?y

Sui Full node server URL (Defaults to Sui Testnet if not specified) :
https://rpc.ankr.com/sui/your-api-key...

Environment alias for [https://rpc.ankr.com/sui/your-api-key...] : ankr
Select key scheme to generate keypair (0 for ed25519, 1 for secp256k1, 2: for secp256r1):
0

Networking or low-level protocol error: Invalid Url: Port number is missing in the URL

Expected Result

Connection to Sui Mainnet without issues.

Actual Result

Networking or low-level protocol error: Invalid Url: Port number is missing in the URL

System Information

•	Sui CLI version: 1.34.0-f28674511c84
•	Compiler: Apple clang version 15.0.0
•	OS: macOS arm64

Metadata

Metadata

Assignees

Labels

cliCommand line tools

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions