Token is not generating during development of plone/gatsby-starter-plone

I am following plone/gatsby-source-plone docs but whenever I try to execute these bash scripts
read -p "Username: " USERNAME read -sp "Password: " PASSWORD curl -s -X POST http://localhost:8080/Plone/@login -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw '{"login": "'"$USERNAME"'", "password": "'"$PASSWORD"'"}' in my terminal required to generate a token. The problem is that token is not being generated as output .

Usually, views are introduced by a @@ prefix. Try .../@@login instead of .../@login.

Note, that your login view must be something special. Typical Plone views will not return a token but some HTML page or generate a redirect response. That said: in order for your script can work, special installation steps inside Plone must already have been successful. What precisely is the curl result?

1 Like