Hi Christian - are you making a multipart/related request without the atom body-part; or a Content-Type: image/* request? I had no luck with the former, but switching away from multipart/related entirely (to a standard post of image-data) worked for me. This is not a great solution, as you can only set the filename this way (via the Slug header), but at least it seems to be working.
On Mon, Jan 30, 2017 at 9:36 AM, Christian <[email protected]> wrote: > I've stripped off all metadata, still not able to upload. > > But, during one of my attempt to load an image from a file system, with > metadata, it uploaded. > > Deleting the image from Google Photos. So I'm getting like 1 out of 80 > attempts to successes. And I'm refreshing my OAuth token before each > upload, just to be safe. > > Running code again, produced the error: > com.google.gdata.util.InvalidEntryException: Bad Request > <HTML> > <HEAD> > <TITLE>Bad Request</TITLE> > </HEAD> > <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> > <H1>Bad Request</H1> > <H2>Error 400</H2> > </BODY> > </HTML> > > at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse( > HttpGDataRequest.java:602) > at com.google.gdata.client.http.GoogleGDataRequest. > handleErrorResponse(GoogleGDataRequest.java:564) > at com.google.gdata.client.http.HttpGDataRequest.checkResponse( > HttpGDataRequest.java:560) > at com.google.gdata.client.http.HttpGDataRequest.execute( > HttpGDataRequest.java:538) > at com.google.gdata.client.http.GoogleGDataRequest.execute( > GoogleGDataRequest.java:536) > at com.google.gdata.client.media.MediaService.insert( > MediaService.java:399) > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Picasa Web Albums API" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/google-picasa-data-api/q_IPdBHqfuY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to google-picasa-data-api@ > googlegroups.com. > Visit this group at https://groups.google.com/group/google-picasa-data-api > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-picasa-data-api. For more options, visit https://groups.google.com/d/optout.
