Hi ,
As your issue seems to be a specific technical issue you would have better assistance from the community by posting in StackOverflow <https://stackoverflow.com/questions/tagged/google-app-engine> as Google Groups is intended for general discussion. You should post to StackOverflow with the extra log information to have the developer community assist you. That being said, there is typically 3 reasons why you would get that error message. 1. Unsupported Image Format Currently, the images service only accept image data in JPEG, PNG, WEBP, GIF (including animated GIF), BMP, TIFF and ICO format [1,4]. Please verify whether your images are in one of the supported formats. 2. Image Too Large The Images Service imposes some limits on the image size [5], in terms of bytes but also by pixels. Please verify whether your images exceed these limits. 3. Use the Image Blob Immediately After Creating It It seems there is a small replication delay for the blob that can cause some issues [2]. Please verify whether pausing for a few seconds after creating the image blob can solve this issue. [1] https://issuetracker.google.com/37495057 [2] https://issuetracker.google.com/35894451 [3] https://issuetracker.google.com/35893334 [4] https://cloud.google.com/appengine/docs/standard/python/images/#image-formats [5] https://cloud.google.com/appengine/docs/standard/python/images/#quotas-limits-pricing On Monday, March 25, 2019 at 10:16:59 AM UTC-4, Gowtham Gupta wrote: > > > I am want to use the ImageService API to get to get obscure/secure URLs to > my public objects Google Cloud Storage. I am saving the blob on storage > (successfully), and using the getServingUrl API on the ImageService to get > the serving URL. This call throws ImageServiceFailureException. Scoured > thro' the limited documentation, found no solution. My images are less than > 1 MB. Please help if you have encountered this and have solved it. My code > fragment > > > ImagesService imagesService = ImagesServiceFactory.getImagesService(); > > ServingUrlOptions options = > ServingUrlOptions.Builder.withGoogleStorageFileName( "/gs/" + envBucket + > "/" > > + PROJECT_PREFIX + "/" + projectUuid + "/floorplanmodel/image" + > imagenumber).secureUrl(true); > > url = imagesService.getServingUrl(options); > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/69b2c259-a258-4cc5-af73-655b8186c5ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
