Skip to content

web action does not have web in the url, resulting in an invalid link #823

@shazron

Description

@shazron

Description

A web action does not have web in the url reported by the CLI, thus when calling it, it is treated as a non-web action and requires auth.

Might be relevant:

  1. the web-export annotation is in the wrong place
  2. the web-custom-options annotation is present

Expected

The web action url reported by the CLI has a valid web url.

Actual

The web action url reported by the CLI does not have a valid web url.

Logs for Repro

aio app deploy output:

$ aio app deploy
✔ Built 11 action(s) for 'application'
ℹ No frontend or a build already exists, skipping frontend build for 'application'
✔ Deployed 20 action(s) for 'application'
no frontend, skipping frontend deploy 'application'
Your deployed actions:
web actions:
...
  -> https://foo.adobeioruntime.net/api/v1/bar/init-target
...
non-web actions:
...
  -> https://foo.adobeioruntime.net/api/v1/bar/__init-target
...

manifest.yaml:

packages:
  foobar:
    license: Apache-2.0
    actions:
      __init-target:
        function: actions/init-target/index.js
        runtime: 'nodejs:22'
        limits:
          memorySize: 1024
        annotations:
          require-adobe-auth: false
          final: true

    sequences:
      init-target:
        actions: '__init-target'
        web-export: raw
        annotations:
          web-custom-options: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions