API for Forgot Password Process

Hi All,

Hope someone may have an insight into this issue.

I am building a Phone app that will use Bubble, via its API to Sign Up and Login Users. Now I have successfully accomplished the API Sign Up / Login workflows.

I now want to trigger a Forgot Password API workflow, which I thought would be the simplest one. Basically the workflow receives an email address into the Action “Send Reset Password Email”. However I get a Message back from Bubble telling me that the workflow failed because its not receiving the email address.

My Endpoint is set up like this:

My Action is setup Like this:

forgotPasswordAction

Using Postman, the API Request/Response looks like this:


POST
https://contactsm.bubbleapps.io/api/1.1/wf/forgotpassword
18 May 2018-01:55:24.134

	 Request Headers:
	content-type:"multipart/form-data; boundary=--------------------------616839716228929789507012"
	cache-control:"no-cache"
	user-agent:"PostmanRuntime/7.1.1"
	accept:"*/*"
	host:"contactsm.bubbleapps.io"
	accept-encoding:"gzip, deflate"
	content-length:176
	 Request Body:
	emailDS:"fred@gmail.com"
	 Response Headers:
	x-powered-by:"Express"
	access-control-allow-origin:"*"
	content-type:"application/json"
	x-bubble-perf:"{"total":393.7,"percents":{"top":{"bubble_cpu":2.5,"block":18.4,"capacity_rl":0,"other_pause":0,"pre_fiber":78.6},"sub":{"pp_userdb":0,"pp_wait_userdb":0,"http_request":0,"serverjson":2.4,"redis":2.9,"fiber_queue":0.6,"capacity_wait":1.5}},"counts":{"pp_userdb":0,"http_request":0,"serverjson":4,"redis":10,"fiber_queue":12,"blocks":11},"misc":{"userdb_results":0,"userdb_data":0,"spent_time":9800155,"_longest_running_block_time":11.6,"_longest_running_block_name":"SELECT appserver.get_metadata($1,$2,null) as x [\"dedicated\",\"contactsm\"]"}}"
	x-bubble-capacity-used:"1.791"
	x-bubble-capacity-limit:"0"
	date:"Fri, 18 May 2018 01:55:25 GMT"
	connection:"keep-alive"
	transfer-encoding:"chunked"
	 Response Body:
	statusCode:400
	 body:
	status:    "MISSING_DATA"
		message:"Missing parameter for workflow forgotpassword: parameter emailDS"

As you can see API Response tells me its missing the “emailDS” . parameter. Whereas it is plain to see it was sent in the API Request Body as emailDS:"fred@gmail.com".

I suspect the Response Message may not be telling the full story, but I don’t know.

Any help would be appreciated.

Thanks in advance.

1 Like

Did you ever get this resolved @alan.martin ?