Google App Engine Mailjet gives 500 error

77 views
Skip to first unread message

Jukka Hautakorpi

unread,
Oct 25, 2020, 6:19:13 PM10/25/20
to Google App Engine

When trying to use mailjet with php 7 Google App engine,
the request to that file gives 500-error and I cannot see any details of the error anywhere in developer console!

- runtime: php72
-mailjet/mailjet-apiv3-php": "^1.5"
-This file works 100% on my own server.

- I have narrowed the cause of error to the line
$mj = new \Mailjet\Client(MAILJET_API_KEY, MAILJET_SECRET_KEY, true,['version' => 'v3.1']);
but it's from the docs and nothing weird about it, and these api keys of course also works.

Put perhaps the path or something is different in my gae than in my apache ?
the row that i have is use \Mailjet\Resources; and it's working in my own server ok.


Do I need some custom php.ini settings to make this work ?

yananc

unread,
Oct 26, 2020, 3:29:00 PM10/26/20
to Google App Engine
The ‘500’ error and no logs found in the Cloud Console might suggest that requests did not even reach your app. Do you use App Engine Standard or Flexible environment? Are you able to deploy the app successfully? Do you mean that the variables ‘MAILJET_API_KEY’ and ’MAILJET_SECRET_KEY’ work in App Engine or on your own server? Please also provide more description on the file structure / path of your app. Such information could be helpful to troubleshoot the issue. Thank you.
Reply all
Reply to author
Forward
0 new messages