Level 51
A 500 HTTP code is a generic server error so without details it's too difficult to help you as it could be anything. Can you look through your webserver and laravel logs and provide more details so we can help you
Hey Folks
I have been looking at this for some time
Route
$router->get('/v2/stellar/get', 'StellarController@get');
Controller
public function get()
{
try {
$client = new \GuzzleHttp\Client(); //GuzzleHttp\Client
$result = $client->request('GET', 'URL;
var_dump('<pre>' . $result . '</pre>');
} catch (\GuzzleHttp\Exception $e) {
var_dump('<pre>' . $e . '</pre>');
}
//Return $result;
}
Just getting a 500 error, I have checked logs and everything, any ideas
I'm assuming this was just a typo in your forum post. But if not, it could be the problem:
change
$result = $client->request('GET', 'URL;
to
$result = $client->request('GET', 'URL');
Please or to participate in this conversation.