Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try-Out Servers List is Empty #1611

Open
ralusnom opened this issue Aug 4, 2020 · 5 comments
Open

Try-Out Servers List is Empty #1611

ralusnom opened this issue Aug 4, 2020 · 5 comments

Comments

@ralusnom
Copy link

ralusnom commented Aug 4, 2020

When I try to Try it out I cannot press the execute button.
I see this error in the console-tab as soon as I press that button.

image

Is there something I forgot to configure? It is still the default recipe configuration, the only thing I changed is the namespace of the entities, since they are not in src/Entity.

I'm using "api-platform/core": "^2.1" on symfony 5.2

@cnizzardini
Copy link

cnizzardini commented Aug 28, 2020

We are also experiencing this same issue:

    "require": {
        "php": "^7.1.3",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "ext-mongodb": "^1.6",
        "api-platform/api-pack": "^1.1",
        "doctrine/annotations": "^1.8",
        "doctrine/doctrine-migrations-bundle": "^2.0",
        "doctrine/mongodb-odm-bundle": "^4.1",
        "guzzlehttp/guzzle": "^6.3",
        "symfony/apache-pack": "dev-master",
        "symfony/console": "4.4.*",
        "symfony/dotenv": "4.4.*",
        "symfony/error-handler": "4.4.*",
        "symfony/filesystem": "4.4.*",
        "symfony/flex": "^1.1",
        "symfony/framework-bundle": "4.4.*",
        "symfony/yaml": "4.4.*"
    },
    "require-dev": {
        "api-platform/schema-generator": "^2.1",
        "doctrine/doctrine-fixtures-bundle": "^3.3",
        "symfony/maker-bundle": "^1.11",
        "symfony/phpunit-bridge": "^5.2@dev",
        "symfony/profiler-pack": "^1.0",
        "symfony/var-dumper": "4.4.*"
    },

@cnizzardini
Copy link

p.s. i added this to my composer.json and it resolved the issue after running a composer install:

https://getcomposer.org/doc/04-schema.md#prefer-stable

There is something yucky in dev so prefer stable.

@malaimo2900
Copy link

Yes, using @cnizzardini solution is working.

I wanted to add you can also choose a minimum-stability: stable. This also corrects the issue.

You may want to try removing the api package, deleting the vendors/* directories and then adding api module again with composer before running composer install.

@ralusnom
Copy link
Author

ralusnom commented Sep 9, 2020

Yes, it works now after setting "prefer-stable": true, thanks @cnizzardini!

@jordan15
Copy link

For me this solution does not working, what is the package in cause of this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants