OAuth2 retrieving token from Reddit's API : Unauthorized 401

I’m trying to follow reddit’s documentation in github (OAuth2 · reddit-archive/reddit Wiki · GitHub) but I am having issues. I keep getting 401 when I’m trying to request for an access_token. I have successfully retrieved the code but I’m having issues when I’m using the code to request for a token.

My request looks like this.

and I’m stuck at this step

I think this is more of a Reddit issue rather than a bubble issue.

I found the solution to this. Reddit’s API return code seem to have extra characters at the end “#_” we just need to remove those before using the code and the “Authentication” should be “HTTP Basic Auth” with client_id = username and client_secret = password