laminas-api-tools / api-tools-skeleton

Skeleton Application for Laminas API Tools
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
50 stars 64 forks source link

New Field: Error saving field #42

Open leonardocamposprado opened 3 years ago

leonardocamposprado commented 3 years ago

Bug Report

Q A
Version(s) 1.7
PHP 7.4

I cant save a new field using the Admin UI "Error saving field" "Error during the API communication" LOG PHP "Closed without sending a request; it was probably just an unused speculative preconnection"

Captura de tela de 2021-08-04 09-53-49

Ocramius commented 3 years ago

Sounds like your HTTP client started sending a request, and abandoned it mid-way?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On Wed, Aug 4, 2021 at 3:01 PM leonardocamposprado @.***> wrote:

Bug Report Q A Version(s) 1.4 PHP 7.4

I cant save a new field using the Admin UI "Error saving field" "Error during the API communication" LOG PHP "Closed without sending a request; it was probably just an unused speculative preconnection"

[image: Captura de tela de 2021-08-04 09-53-49] https://user-images.githubusercontent.com/20843795/128185126-913de826-76fe-412c-ae71-42f7d1d90127.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/laminas-api-tools/api-tools-skeleton/issues/42, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFVEGA4RGUUFK7CO76GNDT3E24HANCNFSM5BRCP43Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

leonardocamposprado commented 3 years ago

Yes, however I changed 0.0.0.0:8080 to localhost:8080 and this error in the log stopped. But bugs in Adim UI persists.

Sounds like your HTTP client started sending a request, and abandoned it mid-way? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Wed, Aug 4, 2021 at 3:01 PM leonardocamposprado @.***> wrote: Bug Report Q A Version(s) 1.4 PHP 7.4 I cant save a new field using the Admin UI "Error saving field" "Error during the API communication" LOG PHP "Closed without sending a request; it was probably just an unused speculative preconnection" [image: Captura de tela de 2021-08-04 09-53-49] https://user-images.githubusercontent.com/20843795/128185126-913de826-76fe-412c-ae71-42f7d1d90127.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#42>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFVEGA4RGUUFK7CO76GNDT3E24HANCNFSM5BRCP43Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

goharsahi commented 2 years ago

Although this is more than a year old report but I've recently experienced the exact same problem. I'm using PHP 7.4 with Laminas API Tools 1.6.0dev. This happens for both RPC and REST services.

I've installed it using this command

composer create-project laminas-api-tools/api-tools-skeleton path/to/install

One thing that I've noticed that during installation, it didn't ask me for which file to use for configuration injection while installing laminas/laminas-zendframework-bridge (as referenced in this tutorial here https://youtu.be/nqwLawa6l18?t=247).

But the issue goes away when I manually run composer update after it updates a lot of packages.

luciociverra commented 2 years ago

the right sequence is: composer create-project laminas-api-tools/api-tools-skeleton cd api-tools-skeleton composer-update php -S 0.0.0.0:8080 -t public public/index.php