From e7407fb09cd74270411aeaf139b43728a85c1a1f Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 24 Feb 2017 14:24:57 +0000 Subject: [PATCH] =?UTF-8?q?There=E2=80=99s=20an=20error=20somewhere?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/MicropubClientController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index b7eaa9c9..87ac516d 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -95,6 +95,7 @@ class MicropubClientController extends Controller $token = $request->session()->get('token'); $micropubEndpoint = $this->indieAuthService->discoverMicropubEndpoint($domain, $this->indieClient); if (! $micropubEndpoint) { + die('No known endpoint'); return redirect(route('micropub-client'))->withErrors('Unable to determine micropub API endpoint', 'endpoint'); } @@ -104,6 +105,7 @@ class MicropubClientController extends Controller 'query' => ['q' => 'syndicate-to'], ]); } catch (\GuzzleHttp\Exception\BadResponseException $e) { + dd($e); return redirect(route('micropub-client'))->withErrors('Bad response when refreshing syndication targets', 'endpoint'); } $body = (string) $response->getBody();