Help needed in Bruno while making APi calls

I have started learning Frappe framework. Also going through video recordings by Hussain. However, recordings are older. I am using Bruno for API calls. My APi calls are failing even after following the same steps mentioned by Hussain. This is my APi Get call - http://expense-management:8002/api/v2/document/expense-entry, version 2 is still valid?

Hi @swapna

Please, show the payload and the response, so we can help.

Earlier I was getting permission denied so I added API keys for user. However, after adding APi keys, GET is just loading, no response. Seems its going in loop. Screenshot attached.

Hi @swapna

Try to use token <api_key>:<api_secret>

(just insert “token” before you api_key:api_secret)

Hope this helps.

I used it. Pasting whole screen shot. Is it something to do with Bench start?

Hi @swapna

Yes, bench should be running, so use bench start to initiate.

I assume you are working on local. Also, you are calling “expense-management:8002". If you didn’t added on hosts, probably Bruno can’t reach it

Use this instead

http://localhost:8002/api/v2/document/expense-entry

ok Let me try this option.