appengine icon indicating copy to clipboard operation
appengine copied to clipboard

Verify running in Standard AppEngine, not Flex

Open coryrc opened this issue 6 years ago • 4 comments

When someone tries to run this project in Flex, it gives very weird error messages. I'm thinking an easy fix is to confirm IsStandard() when appengine.Main() is called or fmt.Fatalf() right away? (but I don't really know)

coryrc avatar Oct 23 '19 23:10 coryrc

Yes, you should be able to just call IsStandard() (or, conversely, IsFlex(), to determine if you're in a Flex environment).

roffjulie avatar Oct 23 '19 23:10 roffjulie

Would a PR to add the check to this project be accepted?

coryrc avatar Nov 26 '19 05:11 coryrc

What are the weird error messages? I'd rather fix those than add a check that has implications on whether a program crashes or not.

On Tue, Nov 26, 2019, 12:01 AM coryrc [email protected] wrote:

Would a PR to add the check to this project be accepted?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/golang/appengine/issues/220?email_source=notifications&email_token=AAAGDFTMO6LYQLMHCGXPR63QVSURJA5CNFSM4JEMUNB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFEW74A#issuecomment-558460912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGDFRSEO6ZKUKC5CHTSLTQVSURJANCNFSM4JEMUNBQ .

broady avatar Nov 26 '19 05:11 broady

The error found in the application logs is:

2019/06/13

Which is wildly confusing. Given the library used to support Flex and no longer does, I think verification is good because it just can't work.

coryrc avatar Dec 07 '19 00:12 coryrc