Send OTP to the user on email but getting error for that API. #693
snehalsabade
started this conversation in
General Discussion
Replies: 1 comment
-
@snehalsabade check if the request is reaching to the right email server. Check sendEmail function is working independently |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
Need Help
We are customising registration flow with react. In user registration flow, we implemented google captcha. Next we are trying to sendOtp to the user on their email but getting api error 418I'm a Teapot.
We are trying to sendOtp to the user on email .
In google captcha we get successfully google captcha response.
Passing captcha response in headers.
getting response -
{
"id": "api.validate.recaptcha",
"ts": "2024-02-27T10:42:12.325Z",
"params": {
"resmsgid": "dd667150-d55c-11ee-b7a1-f3e82ff5a0c4",
"msgid": "dd667151-d55c-11ee-b7a1-f3e82ff5a0c4",
"err": "I'm a teapot",
"status": "I'm a teapot",
"errmsg": "I'm a teapot"
},
"responseCode": "I'm a teapot",
"result": {}
}
curl --location '{{host}}/learner/anonymous/otp/v1/generate?captchaResponse=03AFcWeA7iqBzBr7Huon9Im_JFahr-6a5Eq_Q6PZGMYzm4a7YVN_BqHPFfYrWEyojuL6gN4BLcheJXuGAWe08LN8YZGAde4kxQuw6goGqZctpx7jJlQaV3-Vpufu-g12ajs7h5BS5IbqRGxWP6dtrJNpqB0itxEmnJwrx4PxEXjJpq9noFXyTiPi-nZg3O_hLHZWUv0Ha6dnU7Nn5kh_T1mCViMk868j9A16kP1YBLfgE6vMH9K7rwsvqVLC62v1nGKPyHjMiz05uvqOELna-l2KgXhrlOzht3b1wovPHVxWBfA68xkem5oscuYK8WPpipLUWUUTvDGpsnRQfCN_WRBZDnnK8IUaCm4j7nnZhEp6Uhc25wlVNZ2p7Jm2RAIUi8n5VjPzxhwQDOW22ZIrb20gQsttQPu8FlzI027aMDrm-tfS48jVGm-KsaiwexDnB7AFVe56bByRLoflisTiRsggqXGQruWvwJtmdiFU1Du6uoXWFoViw30PCq2ubcWTDCYxeZMBLCsNA211nrZL0-rk1iGul_Q_jR6WFkSelGPG98dxOo8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fO3zGi5t9kFhz-cQI4GOU1EQo58l63FLUljhVxJIc8cD3G0Nn9mpcwq5EiPla1M5-g'
--header 'Accept: application/json'
--header 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8'
--header 'Connection: keep-alive'
--header 'Content-Type: application/json'
--header 'Cookie: {{cookie}}'
--header 'Origin: {{host}}'
--header 'Referer: {{host}}/signup?client_id=portal&state=88ad52fd-0a51-457d-9b92-976877007223&redirect_uri=https:%2F%2F{{}}%2Fresources%3Fauth_callback%3D1&scope=openid&response_type=code&version=4&error_callback=https:%2F%2F{{}}%2Fauth%2Frealms%2Fsunbird%2Fprotocol%2Fopenid-connect%2Fauth'
--header 'Sec-Fetch-Dest: empty'
--header 'Sec-Fetch-Mode: cors'
--header 'Sec-Fetch-Site: same-origin'
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
--header 'X-App-Id: {{}}'
--header 'X-App-Version: 4.10.0'
--header 'X-Channel-Id: {{}}'
--header 'X-Device-ID: 759396ed9ad716856e491533d6e1ffc6'
--header 'X-Org-code: {{}}'
--header 'X-Request-ID: 1f55a81a-287a-9653-f30d-2ac8332653e1'
--header 'X-Session-ID: d3d87691-389b-0be5-fd09-cc0f775168ad'
--header 'X-Source: web'
--header 'X-msgid: 1f55a81a-287a-9653-f30d-2ac8332653e1'
--header 'sec-ch-ua: "Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"'
--header 'sec-ch-ua-mobile: ?0'
--header 'sec-ch-ua-platform: "Linux"'
--header 'ts: 2024-02-27T14:52:44+05:30'
--data-raw '{"request":{"key":"[email protected]","type":"email"}}'
cc: @paritshivani @komalm @manishakapadnis
Beta Was this translation helpful? Give feedback.
All reactions