in6pio / Incipio

ERP pour Junior-Entreprises.
http://incipio.fr
GNU Affero General Public License v3.0
5 stars 5 forks source link

Ajouter à la doc baseURL Postman & API #61

Open xNok opened 9 years ago

xNok commented 9 years ago

Ajouter à la doc :

xNok commented 9 years ago

La modification de la variable Base_URL (app/config/config.yml) entraîne un bug

Avant:

csa_guzzle:
    clients:
        local_api:
            config:
                base_url: http://localhost

Après :

csa_guzzle:
    clients:
        local_api:
            config:
                base_url: http://localhost:8000

le server plante et la navigation vers les pages autres que la dashboard sont impossible.

[2015-08-12 23:22:27] request.INFO: Matched route "users". {"route_parameters":{"_controller":"FrontBundle\\Controller\\UserController::indexAction","_route":"users"},"request_uri":"http://127.0.0.1:8000/users/"} []
[2015-08-12 23:22:28] security.DEBUG: Read existing security token from the session. {"key":"_security_front"} []
[2015-08-12 23:22:28] doctrine.DEBUG: SELECT t0.username AS username_1, t0.username_canonical AS username_canonical_2, t0.email AS email_3, t0.email_canonical AS email_canonical_4, t0.enabled AS enabled_5, t0.salt AS salt_6, t0.password AS password_7, t0.last_login AS last_login_8, t0.locked AS locked_9, t0.expired AS expired_10, t0.expires_at AS expires_at_11, t0.confirmation_token AS confirmation_token_12, t0.password_requested_at AS password_requested_at_13, t0.roles AS roles_14, t0.credentials_expired AS credentials_expired_15, t0.credentials_expire_at AS credentials_expire_at_16, t0.id AS id_17, t0.created_at AS created_at_18, t0.ending_school_year AS ending_school_year_19, t0.fullname AS fullname_20, t0.organization_email AS organization_email_21, t0.organization_email_canonical AS organization_email_canonical_22, t0.types AS types_23, t0.updated_at AS updated_at_24, t0.student_convention_id AS student_convention_id_25 FROM user t0 WHERE t0.id = ? LIMIT 1 [68] []
[2015-08-12 23:22:28] security.DEBUG: User was reloaded from a user provider. {"username":"admin","provider":"FOS\\UserBundle\\Security\\EmailUserProvider"} []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DumpListener::configure". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Dunglas\ApiBundle\EventListener\ResourceTypeRequestListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Dunglas\ApiBundle\EventListener\FormatRequestListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.request" to listener "Knp\Bundle\MenuBundle\EventListener\VoterInitializerListener::onKernelRequest". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController". [] []
[2015-08-12 23:22:28] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController". [] []
theofidry commented 9 years ago

@xNok I've tested in local and I have the same issue but need more tests to identify the origin of the issue, but it's really just about the API side since the front is running fine, so either the API or the ApiClient. In the meantime I'm sorry I have no other solution than using the VM.

xNok commented 9 years ago

i solved the problems by creating a vhost (I don't use symfony's server then). CsaGuzzleBundle may try only to use port 80

theofidry commented 9 years ago

I can see 3 leads: