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

Debugging logs or errors are not showing #1833

Closed
hoannguyen02 opened this issue Mar 19, 2024 · 6 comments
Closed

Debugging logs or errors are not showing #1833

hoannguyen02 opened this issue Mar 19, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@hoannguyen02
Copy link

Please list the package(s) involved in the issue, and include the version you are using

"@shopify/app": "3.57.0",
"@shopify/cli": "3.57.0"

"@shopify/shopify_function": "0.1.0",

Describe the bug

The log & error doesn't show

Steps to reproduce the behavior:

  1. Generate delivery customization
    2.Modify
  2. Build & Deploy

Expected behavior

Can see the log, error to validate business works

Screenshots

image image

Additional context

Initial app without remix

@hoannguyen02 hoannguyen02 added the bug Something isn't working label Mar 19, 2024
@dnagoda
Copy link
Contributor

dnagoda commented Mar 21, 2024

Hi @hoannguyen02 👋

Here's the documentation for how Functions handle/report errors:

https://shopify.dev/docs/api/functions/errors#how-it-works

Console logs/errors should be captured, but only if the Function fails while running. Successful runs will not capture the associated logs.

@dnagoda dnagoda closed this as completed Mar 21, 2024
@hoannguyen02
Copy link
Author

hi @dnagoda

Many thanks for the response.

Could you show me example code? at the moment I made 2 type of errors but cannot click any of them to see details.

image

@dnagoda
Copy link
Contributor

dnagoda commented Mar 22, 2024

@hoannguyen02 I'm going to dig a little deeper into this. Is this a development store that you're testing on?

@hoannguyen02
Copy link
Author

hi @dnagoda it is shopify plus store, not development store

@dnagoda
Copy link
Contributor

dnagoda commented Mar 25, 2024

If this is a live shopify plus store, errors are not automatically made available in the Partner dashboard. You can read more about how merchants can share the error data here:

https://shopify.dev/docs/api/functions/errors#sharing-error-reports

@hoannguyen02
Copy link
Author

Thank you @dnagoda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants