Support Topics Documentation Slack YouTube Blog

Email confirmation link not working

I have built an android app with your backendless api. I’m using user service api for user registration where I require the user to confirm his/her email for registration.

However, when someone clicks on the link in the received email an error is encountered.
I personally test this and I got this error:

{“code”:8002,“message”:“Could not parse request with message: , status code 404, headers GET /api/B952A98C-3AF8-0E07-FF8A-0E72F029D000/305A9BD1-5CD1-4579-A4FD-F55A3B73E50A/users/confirmation”,“errorData”:{}}

link was (my custom domain: back.persmanga.com):
http://back.persmanga.com/api/B952A98C-3AF8-0E07-FF8A-0E72F029D000/305A9BD1-5CD1-4579-A4FD-F55A3B73E50A/users/confirmation

Email confirmation was working before and I didin’t change anything. I’m wondering why it’s not working now. I tested further and it seems that the link should not have “/api/” part in the path:

http://back.persmanga.com/B952A98C-3AF8-0E07-FF8A-0E72F029D000/305A9BD1-5CD1-4579-A4FD-F55A3B73E50A/users/confirmation

Regards,

Hello, @Amir_Sarraf .

We were able to reproduce your problem.
The internal ticket BKNDLSS-20225 is created, we will let you know about solution.

Regards,
Inna

Hi @Amir_Sarraf,

I noticed the custom domain mapped to your application is back.persmaga.ir (and not back.persmaga.com). I registered myself as a test user to see if I can reproduce the problem, however, the email has not arrived yet. I see you’re using your own email server. Could you please check if an email to mpiller@gmail.com has been sent?

Regards,
Mark

thanks for your support. maybe it’s in your spam folder because my email service says it’s delivered.
I deleted your account so you could test it again.

Hello @Amir_Sarraf

The issue with status code 404 has been fixed.
But there is another problem somewhere on your side

I just register a new user in your app and got an confirmation email with link

link text:

http://back.persmanga.ir/api/B952A98C-3AF8-0E07-FF8A-0E72F029D000/9241A3CE-90FF-4973-AD03-10F58D178B44/users/confirmation

link url:

https://u9007462.ct.sendgrid.net/wf/click?upn=Ea8SEQhntJQO9RPQfrT8fJvJj45gkcpCcger-2Ft2zi3bR-2BF0CpqZJ-2FAkZPljmaz1YpF5pZ3xK-2BJfLDclNlSpr2k-2Be8U1MOrMFP0pkiX2BHC5lGAAIH9LjkG-2Fj6GTAe3SZCYXXGQtS2bAbGvUBT2qQyK5TXQLbONYxTSxEJ21jV1sMBTJTr6UfA9u-2B103VUR8kXdm5rVtEISEFdJbJmpI9NDOWctwj0DMTjFRUNTeL0lgLml-2Bz6mxXJuMiVTsIb-2F2dhJYR-2FOyZGD2zqyvvuE8mDOqt08vk0p8WfCNOQ91wWw4Ee-2BMPzfGwiQgVJ1YlRXezkYoCDHUxLRJkDO-2BmMVoV40qos-2BwKBUEJW5a8X7iMZBmpSFwfBtbkM8NUYN2CGtwgx-2FIloJUvuZmRqd-2F-2BNIQlSSFknarmr2jRYfykn85qNbTL2iNu0L4RlawidcbWMNkCnyTINT2t-2Fvbc1vo-2FpTg6ouqIa1U7o28OwlDAPaOS1bFk5CF4TsyMxLcv2Eh0vj-2BRRy527CsBY1vn5w7ChDXOGL5moeQ2VJRARcueswv-2BI-2FgHVNYzAyIY93gncqDTbQcJ40tWWRDvNlsh1oWjOcCrTzTZA3G95NPmmkSdQoareFAm3RnhM0AdA9cbdHuhpdmKMDaX6B887klUSmOIrI9a1Q7WS-2FKqCpsSefJx9kutwar977kgxQzalQWOvZbo4gdONLtZl-2Bkps4ex2Jq1pO3CBw-3D-3D_6Z9BSmmOrltQsaNcyxc7N9b35VF5EjwPyIzzw2Ma1mM6sqJpw1ImIobWRwzmOa2PUSSfQdYxAXJhOWA2F-2B5GZi6KC49j9U5gCuZfrieDcnVb1miJbDx7o-2BYLC-2B74Xuk3Fg-2BPbs8ewhzlr0JFnSce7TYslSGWTd-2FZ2TFok-2BGuM-2BAhv5jM-2F2-2BC95iLAXvNWxFkTWvV7WuJgWNVPC3r-2BcuYAyeiLICG67srdCG4dNkfBSDGgC9v0NIF9rHfR10qbrtG

on click at this url you are redirected twice


the end location is:

http://back.persmanga.ir/api/B952A98C-3AF8-0E07-FF8A-0E72F029D000/305A9BD1-5CD1-4579-A4FD-F55A3B73E50A/users/confirmation

as you can see the confirmation key must be 9241A3CE-90FF-4973-AD03-10F58D178B44 but it is 305A9BD1-5CD1-4579-A4FD-F55A3B73E50A

btw, this is exactly the same url as you have at the top of this topic

So, I guess there maybe some kind of cache, could you check it please.
If you just copy the url (text) and paste into web browser the email will be confirmed.

Regards, Vlad

Thanks, Great work!
The problem seems to be solved!
I’ll check sendgrid settings and inform you about the result.