canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

ERR_CONNECTION_REFUSED

Open AkshayTembhekar21 opened this issue 2 years ago • 0 comments

Summary:

This is for the first time I am trying to work on canvas LMS and I am stuck on step 1 of canvas LMS OAuth. l have client id and secret key. Using postman I am doing this. https://sandbox/login/oauth2/auth?client_id=MY_CLIENT_ID&response_type=code&redirect_uri=http://localhost:8080/welcome Instead getting redirected to the said uri I am getting an error. GET https://sandbox/login/oauth2/auth Error: connect ECONNREFUSED sandboxIP:PortNumber Request Headers User-Agent: PostmanRuntime/7.32.3 Accept: / Postman-Token:Some postman token Host: sandbox Accept-Encoding: gzip, deflate, br Connection: keep-alive

Steps to reproduce:

https://sandbox/login/oauth2/auth?client_id=MY_CLIENT_ID&response_type=code&redirect_uri=http://localhost:8080/welcome -> replace sandbox with your sandbox or by your canvas instance in postman. I tried the same using java code as well but getting the same error as connection refused. I have added http://localhost:8080/welcome in Developer keys -> redirect uris field.

Expected behavior:

Should get redirected to the redirect_uri

Actual behavior:

GET https://sandboxIP/login/oauth2/auth Error: connect ECONNREFUSED sandboxIP:PortNumber Request Headers User-Agent: PostmanRuntime/7.32.3 Accept: / Postman-Token:Some postman token Host: sandboxIP Accept-Encoding: gzip, deflate, br Connection: keep-alive

Additional notes:

AkshayTembhekar21 avatar Jul 08 '23 20:07 AkshayTembhekar21