What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello everyone, I'm using a custom client to consume the Glue API. While developing, I sometimes run
Hello everyone,
I'm using a custom client to consume the Glue API. While developing, I sometimes run into exceptions in Spryker. This means that Glue responds with a 500 response, which is fine, but gives no further information on the error.
Can you please explain or point me to the documentation on how to change my config to get an exception message and stack trace in my Glue responses?
Comments
-
Don't you have an access to the backend of the Spryker's Glue instance?
I'm not sure if it's possible to get an exception in the response.
@UQKSAARKN am I right?
0 -
Hi! In a development environment it should be possible to show errors, itβs a server configuration. Are you running docker?
0 -
I do have access to the backend, and I can search through the logs, but I would prefer to get the error information directly in Glue's response so my client can display them.
I am indeed running docker
0 -
Hi JΓΆrn!
I think you can run docker in dev mode to make errors show up in plain text in the Glue responses. The following setting in the deploy.yml should do it:
docker: debug: enabled: true
0 -
Hi there!
I tried that configuration, but sadly, it doesn't work. The 500 response from Glue is still empty.0 -
Anything else I can try?
0 -
Just to confirm: you ran in dev mode or tried changing one setting?
0 -
I bootstrapped my application with the modified deploy file
0 -
And restarted
0 -
@ULYHPR789 can you please help? Iβm not sure the setting I mention is the only one blocking the errors
0 -
@UQKSAARKN What configuration parameter should be set for having error stack trace of the response?
0 -
@U01FMCD8EN4 You can use docker logs to tail the error messages.
docker logs spryker_b2c_dev_glue_eu_1 -f
(container name can be different, use
docker/sdk ps
to get the right one)0 -
Thank you for the reply, but the error message does not show up in either glue or zed logs, I double checked the container names.
If I look at spryker.local/logs and view glue and zed errors, it shows up. Also, reading the log files is great, but I would love to have Glue output the error message directly0 -
Any advice on this, guys?
0 -
maybe a dumb question - but did you try to set GlueApplicationConstants::GLUE_APPLICATION_REST_DEBUG to true?
0 -
I found this in the code: https://github.com/spryker/glue-application/blob/b54539ab0cf48827747ce8da67dc0af69e8127e1/src/Spryker/Glue/GlueApplication/Rest/ControllerFilter.php
So the
GlueApplicationConstants::GLUE_APPLICATION_REST_DEBUG
should be true for the exception to show up.then I see in suite the config above depends on the https://github.com/spryker-shop/suite/blob/master/config/Shared/config_default-docker.dev.php#L50 the
SPRYKER_DEBUG_ENABLED
defined in the docker.Can you check the chain works? maybe your suite is not taking the env where it should be and the chain is broken
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random