Occasional exceptions "Trying to access array offset on value of type null" #29
-
Hello, first of all thanks for the package, much appreciated! I'm checking for these sporadic exceptions "Trying to access array offset on value of type null"
Example of two common related stack traces exceptions:
I think it mostly depended (seems clear) on the underline communication with google but is there a way to better handle it? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Thank you! If I understood correctly, some of Google's endpoints that this package uses throw random 'Socket closed' errors? That's strange, I haven't seen that happening yet, though I haven't used this package extensively yet (hopefully soon). It seems to happen when verifying the OpenID token, as well as when sending the queued job to Cloud Tasks? Does it work if you try it right after? Maybe we could build some retry mechanism for this issue? |
Beta Was this translation helpful? Give feedback.
-
Ok I think i found something related to OpenIdVerificator getPublicKey method,
I think it maybe an expiration problem, the condition This would explain the error and the reason why getFreshCertificates method is not run. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Thanks, definitely sounds like it could cause problems. I merged the PR and tagged |
Beta Was this translation helpful? Give feedback.
Thanks, definitely sounds like it could cause problems. I merged the PR and tagged
v2.1.3
. Can you check if this fixes the issues?