HTTP: Heap underflow -
puya1122 - 08.03.2018
Hi, i have a problem with server when the code use http from a invalid URL.
I gave the 502 error code,after that the server is down..
https://pastebin.com/m2Rh6irt
Thank you !
Re: HTTP: Heap underflow -
Stev - 08.03.2018
Show us the HTTP(..) request with the URL. I don't think it would be caused by the pawn. It depends on the HTTP response (html/php)
Re: HTTP: Heap underflow -
puya1122 - 08.03.2018
Код:
stock RegisterAccount(playerid)
{
new string[260];
format(string, sizeof(string), "type=RegisterAcc&nickName=%s&Password=%s&email=%s&ipAddress=%s", PlayerName[playerid], RegisterInfo[playerid][PlayerPassword], RegisterInfo[playerid][PlayerEmail], PlayerIP[playerid]);
HTTP(playerid, HTTP_POST, URL_INREGISTRARE, string, "CreateAccountHTTP");
return 1;
}
Re: HTTP: Heap underflow -
BroZeus - 08.03.2018
The URL is missing the domain-name/IP part.
Re: HTTP: Heap underflow -
puya1122 - 09.03.2018
Yes,it is,but i can't show you the domain name..
This really matter? I want to know why the server is crashed when the URL is called twice. May the HTTP function to send invalid data to server ? I shew you just final part from debug, it's not all...my log is spammed with 'heap underflow'.
Re: HTTP: Heap underflow -
DobbysGamertag - 09.03.2018
Why are you registering players via HTTP? You're creating more issues than you're solving. Particularly sending passwords via HTTP.
You're doing it the most ass-backwards way possible.
Re: HTTP: Heap underflow -
Sew_Sumi - 09.03.2018
Quote:
The HyperText Transfer Protocol (HTTP) 502 Bad Gateway server error response code indicates that the server, while acting as a gateway or proxy, received an invalid response from the upstream server.
|
And
Код:
[08/03/2018 14:29:14] [sampgdk:error] Too many callback arguments (at most 32 allowed)
is highly likely to have an effect on this, as the first error is usually indicating there is a problem there... Anything collapsing after, is simply indicative of the initial fault.
Re: HTTP: Heap underflow -
puya1122 - 09.03.2018
Quote:
Originally Posted by DobbysGamertag
Why are you registering players via HTTP? You're creating more issues than you're solving. Particularly sending passwords via HTTP.
You're doing it the most ass-backwards way possible.
|
Because we needed a more advanced logic of validating the email addresses that were used.
Re: HTTP: Heap underflow -
puya1122 - 09.03.2018
Quote:
Originally Posted by Sew_Sumi
And
Код:
[08/03/2018 14:29:14] [sampgdk:error] Too many callback arguments (at most 32 allowed)
is highly likely to have an effect on this, as the first error is usually indicating there is a problem there... Anything collapsing after, is simply indicative of the initial fault.
|
That's what I wanted to hear !