Rocketchat doesn't connect to Zapier

Description

After clicking on “Authorize” button to grant Zapier permissions appears a 404 error “page not found”. User has admin rigths and Rocket.cat bot is active and online.

Server Setup Information

  • Rocket.Chat Version: 1.3.2
  • Debian 10
  • Docker container deployed trought Docker Composer
  • NodeJS Version: 8.11.4 - x64
  • MongoDB Version: 4.2.0
  • ReplicaSet OpLog: Enabled
  • Proxy: Apache
  • Firewalls involved: any

Any additional Information

Logs are showing these lines:

[OAuth2Server] GET /oauth/authorize?response_type=code&client_id=zapier&redirect_uri=https%3A%2F%2Fzapier.com%2Fdashboard%2Fauth%2Foauth%2Freturn%2FRocketChatDevAPI%2F&state=1569583446.455528

[OAuth2Server] POST /oauth/authorize?response_type=code&client_id=zapier&redirect_uri=https%3A%2F%2Fzapier.com%2Fdashboard%2Fauth%2Foauth%2Freturn%2FRocketChatDevAPI%2F&state=1569583446.455528
[OAuth2Server] POST /oauth/authorize?response_type=code&client_id=zapier&redirect_uri=https%3A%2F%2Fzapier.com%2Fdashboard%2Fauth%2Foauth%2Freturn%2FRocketChatDevAPI%2F&state=1569583446.455528
[OAuth2Server] in getClient (clientId: zapier , clientSecret: null )
[OAuth2Server] in saveAuthCode (code: ee95589b527758075ba4e2d7c6937888cf9cc65b , clientId: zapier , expires: 2019-09-27T11:24:48.772Z , user: { id:’----------------’ } )

Thanks in advanced

Check if You have trailing slash in your rc url. Always / at the end

Hello,

I already put the forward slash at the end on zapier’s registration form and even on my docker-compose, at HTTPS_PROXY= and it doesn’t work either.

It’s trying to reach this when I get the 404 error:

https://myrocketexample.web.com/dashboard/auth/oauth/return/RocketChatDevAPI/?code=2e4f93c47b886110692bf7904a502dbf4037b20f&state=1570031372.0291986

Thanks for your help.

Hi!

We just updated our Zapier docs, please, check it out: