Sitelet https://github.com/googleapis/google-cloud-java/issues/449
Skip to content

Figure out if using URLFetch if running on AppEngine is necessary #449

Description

@ajkannan

If we can always use NetHttpTransport, we can remove the logic in DefaultHttpTransportFactory.create (in ServiceOptions) to check if we're running on App Engine.

Activity

  1. added
    type: cleanupAn internal cleanup or hygiene concern.
    and removed
    api: datastoreIssues related to the Datastore API.
    on Dec 11, 2015
  2. aozarov commented on Jan 11, 2016

    @aozarov
    Contributor

    I think it should be safe to remove it.

  3. mziccard commented on Apr 4, 2016

    @mziccard
    Contributor

    I run a quick storage example and requests seem to work fine in AppEngine with NetHttpTransport. However from here I read:

    com.google.api.client.javanet.NetHttpTransport is discouraged due to a bug in the App Engine SDK itself in how it parses HTTP headers in the response

    Is this a known problem in AE? Or has it been already fixed?

  4. aozarov commented on Apr 4, 2016

    @aozarov
    Contributor

    Is this a known problem in AE? Or has it been already fixed?

    Yes, we saw that before (and we should have mentioned that in the issue).
    This was actually the reason we didn't do anything about it yet.
    I am %99.9 confident that this should be fine however I could not trace the source of this comment or anyone that knows more about it. We did test it and it seems to be working fine.

  5. garrettjonesgoogle commented on May 30, 2017

    @garrettjonesgoogle
    Contributor

    This has become irrelevant with recent developments. We are not going to ensure google-cloud-java is compatible with Java 7 on App Engine; Java 8 on App Engine doesn't have the same restrictions with network fetching. Java 8 support on App Engine is quite close, and is being tracked in #1918 . Closing out this issue.

  6. added a commit that references this issue on Jan 22, 2026
  7. added a commit that references this issue on Mar 30, 2026
  8. added a commit that references this issue on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions