Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Your webhook for orders/create failing to return a successful response. #296

Closed
JDSHINDE opened this issue Aug 9, 2019 · 11 comments
Closed
Assignees
Labels
unconfirmed Unconfirmed yet if it is a true bug/issue.

Comments

@JDSHINDE
Copy link

JDSHINDE commented Aug 9, 2019

There is webhook error when I try to upload my app to the Shopify store
I don't want this webhook so I comment those code but still getting an error like this
Screenshot_47

@JDSHINDE JDSHINDE changed the title Your webhook for orders/create webhook failing to return a successful response. Your webhook for orders/create failing to return a successful response. Aug 9, 2019
@darrynten
Copy link
Contributor

darrynten commented Aug 9, 2019

@JDSHINDE can your webserver user write to storage/framework/cache and storage/framework/sessions and storage/framework/views and all subdirectories in those 3 folders?

What error code do you get? a 500?

@JDSHINDE
Copy link
Author

JDSHINDE commented Aug 9, 2019

@darrynten I see my api_scopes have read orders permission in Shopify-app.php but I didn't use webhooks for create/order, is that problem related with this issue?

'api_scopes' => env('SHOPIFY_API_SCOPES', 'read_products, read_orders ,read_script_tags, write_script_tags')

@JDSHINDE
Copy link
Author

JDSHINDE commented Aug 9, 2019

@JDSHINDE can your webserver user write to storage/framework/cache and storage/framework/sessions and storage/framework/views and all subdirectories in those 3 folders?

What error code do you get? a 500?

yes, my webserver writes in these folders. I see more files in those folders and also that issue only visible in one of my store which has products. not in other development stores

@gnikyt
Copy link
Owner

gnikyt commented Aug 9, 2019

Whats in your config for shopify-app.php

@gnikyt gnikyt self-assigned this Aug 9, 2019
@gnikyt gnikyt added the unconfirmed Unconfirmed yet if it is a true bug/issue. label Aug 9, 2019
@darrynten
Copy link
Contributor

@JDSHINDE what response is your webserver sending, specifically, which response code? Can you paste from /var/log/apache/access.log or similar?

@JDSHINDE
Copy link
Author

@ohmybrew as i mentioned above there is only
'api_scopes' => env('SHOPIFY_API_SCOPES', 'read_products, read_orders ,read_script_tags, write_script_tags')

and i only disabled my order/create webhooks.

@JDSHINDE
Copy link
Author

@darrynten i just check my laravel log file and here is some response like

[2018-07-25 11:48:25] local.ERROR: Class 'OhMyBrew\ShopifyApp\ShopifyAppProvider' not found {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class 'OhMyBrew\ShopifyApp\ShopifyAppProvider' not found at /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:208)
[stacktrace]
#0 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(144): Illuminate\Foundation\ProviderRepository->createProvider('OhMyBrew\\Shopif...')
#1 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(61): Illuminate\Foundation\ProviderRepository->compileManifest(Array)
#2 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(561): Illuminate\Foundation\ProviderRepository->load(Array)
#3 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\Foundation\Application->registerConfiguredProviders()
#4 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(213): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#5 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(162): Illuminate\Foundation\Application->bootstrapWith(Array)
#6 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(146): Illuminate\Foundation\Http\Kernel->bootstrap()
#7 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#8 /home/190178.cloudwaysapps.com/qqfgfwmnbh/public_html/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#9 {main}
"}

@darrynten
Copy link
Contributor

Have you done a composer dump-autoload?

@JDSHINDE
Copy link
Author

JDSHINDE commented Aug 14, 2019

@darrynten i did but not work. can you explain me why this webhook sending this request because i already comment this webhook in my shopify-app.php config and also i didn't send any API scope which is related to that webhook.

@darrynten
Copy link
Contributor

darrynten commented Aug 21, 2019

@JDSHINDE

What information have you configured in your .env file (only relevant information, do not post the entire file as it is sensitive).

If you have configured scopes in the .env file (or any other env options) it will always override any hardcoded scopes in your config file.

Also try removing the vendor folder completely and doing a fresh composer install and restart your web server.

@gnikyt
Copy link
Owner

gnikyt commented Sep 6, 2019

Closing for now, please reopen if issue remains.

@gnikyt gnikyt closed this as completed Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
unconfirmed Unconfirmed yet if it is a true bug/issue.
Projects
None yet
Development

No branches or pull requests

3 participants