Retrieving Connect app properties from Forge is not working

Hi,

I’m migrating a Connect app to Forge.

The Connect app stores application properties:

PUT "/rest/atlassian-connect/1/addons/"+addonKey+"/properties/"+propertyKey

The Forge application is deployed in the development environment, with the app.connect.key set:

...
app:
  runtime:
    name: nodejs22.x
  licensing:
    enabled: true
  connect:
    key: xxxxxxxxxxxxxxxxxxxx

When I try to retrieve the properties from the Forge application, I get a 404 error:

{code: 404, message: '{"statusCode":404,"message":"App with key does not exist."}'}

On the backend, the service is called as follows:

resolver.define('getProperty', async (req) => {
  
  if(!req.payload.addonKey || !req.payload.propertyKey) {
    return {"error": "Invalid parameters - addonKey and propertyKey are required"};
  }

  const res = await api.asApp().requestJira(route`/rest/atlassian-connect/1/addons/${req.payload.addonKey}+"/properties/${req.payload.propertyKey}`);

  if(res.ok) {

......

According to the service documentation, you should be able to access the following properties.

Are there any other actions required to grant access?

Thank you so much.
Regards.

1 Like

At least for HTTP 401 response codes, this is apparently a problem tracked by ECO-1180.

Edit: on second reading, the above issue is actually for Confluence, so it is possibly a different issue.

1 Like