Troubleshooting the Blobstore Service

Troubleshooting the Blobstore Service

Connection Issues

This section describes some of the most common reasons for Blobstore connection errors.
Verify Your Signing Method
Verify you are using the V2 signing method. Some SDKs default to using the V4 signing method, but they also support the V2 signing method, so you should verify you are using V2. The following example shows how to use the V2 signing method with the AWS SDK for Java:
ClientConfiguration config = new ClientConfiguration();
 config.setProtocol(Protocol.HTTPS);

  S3ClientOptions options = new S3ClientOptions();
  config.setSignerOverride("S3SignerType"); //$NON-NLS-1$

  AmazonS3 amazonS3;
  AWSCredentials awsCredentials = new BasicAWSCredentials(serviceInfo.getAccessKeyId(), serviceInfo.getSecretAccessKey());
  amazonS3 = new AmazonS3Client(awsCredentials, config);

  amazonS3.setEndpoint(serviceInfo.getHost());
  amazonS3.setS3ClientOptions(options);
Verify Your Environment
Security policies do not allow you to access Blobstore outside of Cloud Foundry. You must have an application deployed to Cloud Foundry and bound to the Blobstore service in able to interact with Blobstore.