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

Crystal URI must be correctly working with IPv6. #5514

Closed
MrSorcus opened this issue Jan 3, 2018 · 0 comments
Closed

Crystal URI must be correctly working with IPv6. #5514

MrSorcus opened this issue Jan 3, 2018 · 0 comments
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib

Comments

@MrSorcus
Copy link
Contributor

MrSorcus commented Jan 3, 2018

require "http"

uri = URI.parse "http://[::1]"

pp HTTP::Client.get(uri)
HTTP::Client.get(uri) # => No address found for [::1]:80 over TCP (Socket::Error)
0x49a987: *CallStack::unwind:Array(Pointer(Void)) at ??
0x5ac449: initialize at /tmp/crystal-0.23.1-3/src/socket/tcp_socket.cr 104:33
0x5abe24: new at /tmp/crystal-0.23.1-3/src/socket/tcp_socket.cr 27:3
0x5a9df9: socket at /tmp/crystal-0.23.1-3/src/http/client.cr 652:5
0x5a9c0d: exec_internal_single at /tmp/crystal-0.23.1-3/src/http/client.cr 500:5
0x5a5eac: exec_internal at /tmp/crystal-0.23.1-3/src/http/client.cr 486:5
0x5a5d92: exec at /tmp/crystal-0.23.1-3/src/http/client.cr 483:5
0x5a5ad6: exec at /tmp/crystal-0.23.1-3/src/http/client.cr 586:5
0x5a5486: exec at /tmp/crystal-0.23.1-3/src/http/client.cr 612:7
0x5a527d: get at /tmp/crystal-0.23.1-3/src/http/client.cr 329:3
0x483326: __crystal_main at /tmp/client.cr 13:1
0x492f79: main at /tmp/crystal-0.23.1-3/src/main.cr 12:15
0x7f0c3c7c7c05: __libc_start_main at ??
0x48295d: ??? at ??
0x0: ??? at ??

#5326 (comment)

@RX14 RX14 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib labels Jan 3, 2018
bcardiff added a commit to bcardiff/crystal that referenced this issue May 31, 2018
bcardiff added a commit to bcardiff/crystal that referenced this issue May 31, 2018
bcardiff added a commit to bcardiff/crystal that referenced this issue May 31, 2018
bcardiff added a commit that referenced this issue Jun 4, 2018
chris-huxtable pushed a commit to chris-huxtable/crystal that referenced this issue Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib
Projects
None yet
Development

No branches or pull requests

2 participants