It’s correctly redirecting back to your application which is then throwing an error. Check your Lambda logs/configuration.
This is where it redirect to and the error response.
http://sample-env.vzqeyzumtm.us-west-2.elasticbeanstalk.com/callback?oauth_token=K-24LQAAAAAA0_GEAAABXH6PX5A&oauth_verifier=3eq4yv4CMLXOYHWdeL8LOZg1fPI4CjEy
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/callback">GET /callback</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
</body></html>