title: Firebase exception:Object Does Not Exist
body: <p>I was uploading a image to Firebase Storage and this error keeps coming</p>
  
  <blockquote>
    <p>E/StorageException: StorageException has occurred.
        Object does not exist at location.
         Code: -13010 HttpResult: 404 E/StorageException: {  "error": {    "code": 404,    "message": "Not Found.  Could not get object",<br>
    "status": "GET_OBJECT"  }}
        java.io.IOException: {  "error": {    "code": 404,    "message": "Not Found.  Could not get object",    "status": "GET_OBJECT"  }}</p>
  </blockquote>
  
  <p>This is my code:</p>
  
  <pre><code>StorageReference postimage_path=firebaseStorage.child("Post Image").child(random+".jpg");
  
  postimage_path.putFile(newposturi);
  postimage_path.getDownloadUrl().addOnCompleteListener(new OnCompleteListener&lt;Uri&gt;() {
      @Override
      public void onComplete(@NonNull Task&lt;Uri&gt; task) {
          if(task.isSuccessful())
          {
  
              Uri download_url=task.getResult();
              Map&lt;String,String&gt; postmap=new HashMap&lt;&gt;();
              postmap.put("download url",download_url.toString());
              postmap.put("Description",post);
              postmap.put("user_id",currentuser);
              postmap.put("timestamp",""+FieldValue.serverTimestamp());
              postfirestore.collection("Posts").add(postmap).addOnCompleteListener(new OnCompleteListener&lt;DocumentReference&gt;() {
                  @Override
                  public void onComplete(@NonNull Task&lt;DocumentReference&gt; task) {
                      if(task.isSuccessful()){
                          Toast.makeText(PostActivity.this, "Post Successful", Toast.LENGTH_SHORT).show();
                          Intent intent=new Intent(PostActivity.this,MainActivity.class);
                          startActivity(intent);
                          finish();
                      }
  
                      else{
                      String error=task.getException().getMessage();
                      Toast.makeText(PostActivity.this, "Error while Posting :"+error, Toast.LENGTH_SHORT).show();}
                      newpostprogress.setVisibility(View.INVISIBLE);
                  }
              });
          }
  
  </code></pre>