JSON::ParserError in Lti::LaunchesController#show

767: unexpected token at '<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta http-equiv="cleartype" content="on"> <title>The page you were looking for doesn't exist (404)</title> <link href="/stylesheets/fonts/font-all.css" rel="stylesheet" /> </head> <style> body {display: flex; align-items: center; justify-content: center; padding: 30px; font-family: 'RobotoLightNew', 'Ubuntu', helvetica, sans-serif} h1, p {max-width: 700px; text-align: center; margin: auto; color: #222} p {font-size: 22px; margin-top: 10px} img {max-width: 100%; margin-top: 15px} @media screen and (max-width: 459px) { body {padding: 10px} h1 {font-size: 25px} p {font-size: 17px} } </style> <body> <div> <h1>The page you were looking for doesn't exist (404)</h1> <p>You may have mistyped the address or the page may have moved.</p> <img src="/images/standalone-pages/404.png" width="900" /> </div> </body> </html>'

Extracted source (around line #26):
24
25
26
27
28
29
              
request = conn.post @tool.oauth2_url, body
JSON.parse(request.body)
end
def body

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"tool_id"=>"2213", "id"=>"16022"}

Response

Headers:

None