jakim/ig-monitoring

log unknown reasons for invalidating an account

Closed this issue · 5 comments

I was checking out AccountFullUpdate.php file and I came across this line where account gets invalidated with null reason.

I was thinking it would be helpful to add a table called account_unknown_invalidations and log unknown reasons there. One of the unknown reasons might be
cURL error 7: Failed to connect to x port y: Connection timed out
In this case, the proxy should also get disabled.

if we could gather different types of errors in a database, we could later assign them an invalidation type.

jakim commented

Hey, thanks for the suggestion.

This is not a problem with the account, so it should be in the proxy.
ref #87

Hey,
It's not just the proxy error though,
I was able to catch another error on the same line:
cURL error 3: <url> malformed

jakim commented

I mean, these are not IG account errors, but something else.
In my opinion, the best place to show them is the proxy panel.

Oh, you're right. I'll make a pull request of my changes.

jakim commented

Good idea, but as mentioned, not as a wrong account.
duplicate #87
PR #129