I followed this tutorial twice: https://developer.atlassian.com/platform/forge/call-a-confluence-api/
And received a 400 error when it attempted to call the API.
Any one else see this?
{
“errors”: [
{
“status”: 400,
“code”: “BAD_REQUEST”,
“title”: “Invalid input”,
“detail”: null
}
]
}
Hey @MarkHalvorson, I can take a look at this for you. If you could share some more information with me, that’d be really helpful!
- Could you please message me the URL for the site you’re testing this in?
- Could you please share a code snippet of how you’re making the request? Additionally, any screenshots from the network tab of the request parameters would be great too.
Thanks!
Hey @MarkHalvorson. In additional, please can you check the logs in your Developer Console and provide a TraceID of a failing request. Thanks 
Hi @MarkHalvorson. Thanks for sharing that.
In addition, please could you check your app logs in the Developer Console provided by Forge (Developer console). If you visit that link, you should see your app listed. Click on that and then “View your app logs” under monitoring - you’ll want to select Environment: Development since you’re following the tutorial. Then make a request to your app and you should see some logs coming through, which include a TraceID.
The TraceID will be useful for us to further debug your issue. Cheers
I’m not seeing any logs show up.
Hi @MarkHalvorson,
The only reason I can think why you aren’t seeing logs even though you’re invoking your app (by refreshing the Confluence page) is that the app isn’t deployed or installed properly.
Are you still tunnelling when you encounter the error?
- If so, follow https://developer.atlassian.com/platform/forge/call-a-confluence-api/#set-required-permissions which involves deploying and installing your app.
- If that doesn’t work, try
forge uninstall
and forge install
again.
- Failing that, please share the code snippet of how you’re making the request.
I followed those steps and still don’t see anything.
All I have done is follow the tutorial step by step so the code I am using is what is in index.jsx from that page.
Could my version of Forge or version of Node have an effect on this?
Do I need to start over completely with a new Atlassian Confluence instance?
FYI: I tested on a different confluence instance and it worked, so it must be something wrong with my developer instance of Confluence.