ErikMinekus / sm-ripext

SourceMod REST in Pawn Extension
https://forums.alliedmods.net/showthread.php?t=298024
GNU General Public License v3.0
136 stars 38 forks source link

PUT Error #53

Closed ghost closed 3 years ago

ghost commented 3 years ago

after i move to my new VPS the PUT is not working, always return HTTPStatus_Invalid = 0.

My Old VPS : Plesk Panel (PHP 7.4.20 + Server API FPM/FastCGI) My New VPS : Cyberpanel (PHP 7.4.20 + Server API LiteSpeed V7.9)

Tested with REST in Pawn v1.2.3 and REST in Pawn v1.3.0

=== Info: STATE: INIT => CONNECT handle 0xde922140; line 1646 (connection #-5000)

=== Info: Found bundle for host subdomain.domain.com: 0xde9070c0 [can multiplex]

=== Info: Re-using existing connection! (#0) with host subdomain.domain.com

=== Info: Connected to subdomain.domain.com (194.XXX.XX.XX) port 443 (#0)

=== Info: STATE: CONNECT => DO handle 0xde922140; line 1700 (connection #0)

=== Info: http2_send len=194

=== Info: h2 header: :method:PUT

=== Info: h2 header: :path:/api/retakes/76561199145573335

=== Info: h2 header: :scheme:https

=== Info: h2 header: :authority:subdomain.domain.com

=== Info: h2 header: user-agent:sm-ripext/1.3.0

=== Info: h2 header: accept-encoding:deflate, gzip

=== Info: h2 header: accept:application/json

=== Info: h2 header: content-type:applicaton/json

=== Info: http2_send request allowed 1 (easy handle 0xde922140)

=== Info: Using Stream ID: 3 (easy handle 0xde922140)

==> Send header
PUT /api/retakes/76561199145573335 HTTP/2

Host: subdomain.domain.com

user-agent: sm-ripext/1.3.0

accept-encoding: deflate, gzip

accept: application/json

content-type: applicaton/json

=== Info: STATE: DO => DO_DONE handle 0xde922140; line 1935 (connection #0)

=== Info: STATE: DO_DONE => PERFORM handle 0xde922140; line 2056 (connection #0)

=== Info: http2_send len=306

=== Info: data_source_read_callback: returns 306 bytes stream 3

=== Info: http2_send returns 306 for stream 3

==> Send data
{"pistolround_ct": "weapon_usp_silencer", "primary_ct": "weapon_ak47", "secondary_ct": "weapon_usp_silencer", "smg_ct": "weapon_ump45", "awp_ct": 0, "scout_ct": 0, "pistolround_t": "weapon_glock", "primary_t": "weapon_ak47", "secondary_t": "weapon_glock", "smg_t": "weapon_ump45", "awp_t": 0, "scout_t": 0}
=== Info: h2_process_pending_input: All data in connection buffer processed

=== Info: data_source_read_callback: returns 0 bytes stream 3

=== Info: http2_recv: easy 0xde922140 (stream 3) win 33554278/33554432

=== Info: nread=13

=== Info: on_frame_recv() header 3 stream 3

=== Info: Got frame type 3 for stream 3!

=== Info: on_stream_close(), PROTOCOL_ERROR (err 1), stream 3

=== Info: Removed stream 3 hash!

=== Info: h2_process_pending_input: All data in connection buffer processed

=== Info: http2_recv: easy 0xde922140 (stream 0) win 33554278/4294967295

=== Info: h2_process_pending_input: All data in connection buffer processed

=== Info: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
*********&#1928;***************************    %******************ܠ******************P*********************************************`*************************** ***************************p***************************,***************************H***************************蠓*********************************************|******************************************************<***************************Ǥ*********ވ***************************`***************************@!******************@Ȓ*********X***************************R***************************
=== Info: multi_done

=== Info: stopped the pause stream!

=== Info: Connection #0 to host subdomain.domain.com left intact

=== Info: Expire cleared (transfer 0xde922140) 
ErikMinekus commented 3 years ago

According to Google, PROTOCOL_ERROR (err 1) means your server claims to support HTTP/2, but fails to handle it properly somewhere during the request.

ghost commented 3 years ago

According to Google, PROTOCOL_ERROR (err 1) means your server claims to support HTTP/2, but fails to handle it properly somewhere during the request.

Thank you for the information