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

HTTPClient: TLS handshake error (export) #18327

Closed
LinuxUserGD opened this issue Apr 20, 2018 · 4 comments
Closed

HTTPClient: TLS handshake error (export) #18327

LinuxUserGD opened this issue Apr 20, 2018 · 4 comments

Comments

@LinuxUserGD
Copy link
Contributor

LinuxUserGD commented Apr 20, 2018

Godot version:
master (standard/mono version)

OS/device including version:
Antergos OS (Arch Linux)

Issue description:
I've made a project that downloads assets from github and streams it into godot using the ssl certificate from https://github.com/godotengine/godot/blob/master/thirdparty/certs/ca-certificates.crt .
While the game runs fine in the editor, after exporting it to the same platform I get the following error:

Using touch device: Virtual core pointer
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) 
thirdparty/mbedtls/library/ssl_tls.c:4641: x509_verify_cert() returned -9984 (-0x2700)
ERROR: connect_to_stream: TLS handshake error: -9984
   At: modules/mbedtls/stream_peer_mbed_tls.cpp:117.
mbedtls error: returned -0x2700

ERROR: request: Condition ' status != STATUS_CONNECTED ' is true. returned: ERR_INVALID_PARAMETER
   At: core/io/http_client.cpp:166.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: set_data: Condition ' ogg_stream == __null ' is true.
   At: modules/stb_vorbis/audio_stream_ogg_vorbis.cpp:201.
ERROR: instance_playback: Condition ' data == __null ' is true. returned: ovs
   At: modules/stb_vorbis/audio_stream_ogg_vorbis.cpp:137.
ERROR: set_stream: Condition ' stream_playback.is_null() ' is true.
   At: scene/audio/audio_player.cpp:162.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: get_len: Condition ' !f ' is true. returned: 0
   At: core/bind/core_bind.cpp:1573.
ERROR: get_buffer: Condition ' !f ' is true. returned: data
   At: core/bind/core_bind.cpp:1623.
ERROR: load_png_from_buffer: Condition ' buffer_size == 0 ' is true. returned: ERR_INVALID_PARAMETER
   At: core/image.cpp:2529.
ERROR: ~List: Condition ' _first != __null ' is true.
   At: core/self_list.h:100.
ERROR: ~List: Condition ' _first != __null ' is true.
   At: core/self_list.h:100.
WARNING: cleanup: ObjectDB Instances still exist!
   At: core/object.cpp:1989.
ERROR: clear: Resources Still in use at Exit!
   At: core/resource.cpp:418.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!
   At: core/dvector.cpp:70.

Steps to reproduce:

Minimal reproduction project:
https://github.com/HugeGameArtGD/Solus-Stunts/releases/download/v5.0-beta/linux.zip
https://github.com/HugeGameArtGD/Solus-Stunts/releases/download/v5.0-beta/windows.zip

@LinuxUserGD LinuxUserGD changed the title HTTPClient: TLS handshake error HTTPClient: TLS handshake error (export) Apr 20, 2018
@Faless Faless added this to the 3.1 milestone Apr 21, 2018
@LinuxUserGD
Copy link
Contributor Author

I'm not sure but maybe the ca-certificates.crt file isn't packaged in the export. I'll try to rename it to .res .

@LinuxUserGD
Copy link
Contributor Author

#14954 (possible duplicate)

@Faless
Copy link
Collaborator

Faless commented Apr 21, 2018

I'm not sure but maybe the ca-certificates.crt file isn't packaged in the export. I'll try to rename it to .res .

Or try to add *.crt to the export filter

@LinuxUserGD
Copy link
Contributor Author

Thank you, it's working now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants