So i’ve been updating my forums from 1.6 to 3.1 which has involved moving to a new server and restoring backup then plugging everything back together
We use SSO for signing into both which still works
However discourse now seems to throw errors in some random areas that is causing a problem with account creation from the website using the API.
We were using the ruby gem discourse_api at version 0.10.1 which i updated to 0.48.1
The error comes at DiscourseApiService.new.user(self)
which calls resp = client.get("/users/by-external/#{user.id}")
which throws the error {"errors"=>["The requested URL or resource could not be found."], "error_type"=>"not_found"}
This used to work fine but now for some reason the URL cannot be found.
I tried downgrading the discourse_api gem to 0.10.1 again which is what we were running previously and it gets past the client.get stage ok but instead fails at the next call with the same error
client.sync_sso(
{"errors"=>["The requested URL or resource could not be found."], "error_type"=>"not_found"}