File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,11 +240,18 @@ M.copilot = {
240240 error (err )
241241 end
242242
243- if response .body .endpoints and response .body .endpoints .api then
243+ if response .body and response . body .endpoints and response .body .endpoints .api then
244244 log .info (' get_headers ok, authenticated. Use api endpoint: ' .. response .body .endpoints .api )
245245 M .endpoints_api = response .body .endpoints .api
246246 else
247- error (' get_headers authenticated, but missing key "endpoints.api". response: ' .. utils .serializeTable (response ))
247+ log .error (
248+ ' get_headers authenticated, but missing key "endpoints.api" in server response. response: '
249+ .. utils .serializeTable (response )
250+ )
251+ error (
252+ ' get_headers authenticated, but missing key "endpoints.api" in server response. Check log for details: '
253+ .. MC .config .log_path
254+ )
248255 end
249256
250257 return {
You can’t perform that action at this time.
0 commit comments