vendredi 1 juin 2018

cURL error 3:

I have been working locally on a laravel app and everything was great.

After migrate to my shared host (I know isnt the best idea) I started to get cURL error 3: <url> malformed when I try to login in my admin panel.

This is is my controller:

public function getTokenValue() {
    $admin = Admin::first();
    $client = new \GuzzleHttp\Client();
    $token_uri = env('TOKEN_BALANCE_ENDPOINT');
    $token_uri =  str_replace("||contractaddress||",$admin->contract_address, $token_uri );
    $token_uri =  str_replace("||address||",$admin->ether, $token_uri );
    $token = $client->request('GET',$token_uri);
    return json_decode($token->getBody())->result;
}

Error I did my research but got mixed ideas and nothing pretty clear.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire