Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ibrent's avatar

Create API key not displaying the key

I have a new Spark install, when I click on "create" the screen goes gray, but the element that displays the key itself isn't visible. In the database, the key is created just fine. There is no error on the console, and it's the same on Firefox and Chrome. Key deletion works fine. Any help would be appreciated.

0 likes
5 replies
Cronix's avatar

It's working here. Did you run npm install followed by npm run dev after you installed it? Did you install using the spark installer or using composer?

ibrent's avatar

yes, ran npm install, gave 2 warnings. npm run dev succeeds: DONE Compiled successfully in 9319ms

                                                                Asset      Size  Chunks                    Chunk Names

fonts/glyphicons-halflings-regular.eot?f4769f9bdb7466be65088239c12046d1 20.1 kB [emitted] fonts/glyphicons-halflings-regular.svg?89889688147bd7575d6327160d64e760 109 kB [emitted] fonts/glyphicons-halflings-regular.ttf?e18bbf611f2a2e43afc071aa2f4e1512 45.4 kB [emitted] fonts/glyphicons-halflings-regular.woff?fa2772327f55d8198301fdb8bcfc8158 23.4 kB [emitted] fonts/glyphicons-halflings-regular.woff2?448c34a56d699c29117adc64c43affeb 18 kB [emitted] /js/app.js 1.35 MB 0 [emitted] [big] /js/app /css/app.css 159 kB 0 [emitted] /js/app mix-manifest.json 66 bytes [emitted] js/sweetalert.min.js 17 kB [emitted] css/sweetalert.css 22.9 kB [emitted]

installed using spark installer.

EventFellows's avatar

are you using vuejs in a non-minified version? (otherwise it will not show you any errors if there are some)

Are you using vue-devtools?

It should show you if the token is delivered back to vue instance.

ibrent's avatar

looks like i'm using the combined, minified js. How do I switch to the non-minified version?

In vue-devtools, I'm seeing: name:"updateTokens" type:"$emit" source:"" payload:Array[0]

with a red marker by it when I create a token.

ibrent's avatar

Finally found the answer, in php.ini, you have to have: always_populate_raw_post_data = -1 set in order for it to work. The warning about it goes out, which screws up the header, and the JSON isn't understood.

Please or to participate in this conversation.