Title: Bad Request Error 400
Last modified: June 14, 2019

---

# Bad Request Error 400

 *  [argburs14](https://wordpress.org/support/users/argburs14/)
 * (@argburs14)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/bad-request-error-400/)
 * Hello Shafayat! I’m using Google Drive add-on and recently I receive the following
   error from Google Drive: “Bad Request Error 400”. I did not change any configuration.
 * Hope you can help me, thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbad-request-error-400%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [argburs14](https://wordpress.org/support/users/argburs14/)
 * (@argburs14)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11661819)
 * Hi Shafayat! Can you help me with this? I don’t know if it is a plugin issue 
   or Google Drive…
    Thanks!
 *  [dacman](https://wordpress.org/support/users/dacman/)
 * (@dacman)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11666492)
 * I am also experiencing the same issue. I am able to access the google drive and
   select the file and connect to WPDM
 * When I try to test the download it returns
 * Bad Request
    Error 400
 * Any help or guidance would be appreciated
    TIA
 *  [cadbloke](https://wordpress.org/support/users/cadbloke/)
 * (@cadbloke)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11666633)
 * Same here, I think a recent update broke it? The URL is malformed, the GUID for
   the file is ok
 * Rightyo, here’s how to fix it …
 * wp-content/plugins/wpdm-google-drive/src/picker.php – line 92, I left the old
   version commented out
 *     ```
       //var downloadurl = 'https://docs.google.com/uc?authuser=0&id='+id+'&export=download';
       var downloadurl = 'https://drive.google.com/open?id='+id;
       ```
   
 * After you change this you neeed to re-edit the download to re-establish the corrected
   link.
    -  This reply was modified 6 years, 11 months ago by [cadbloke](https://wordpress.org/support/users/cadbloke/).
      Reason: I fixed it
    -  This reply was modified 6 years, 11 months ago by [cadbloke](https://wordpress.org/support/users/cadbloke/).
      Reason: left a vital bit out. Sorry
 *  Thread Starter [argburs14](https://wordpress.org/support/users/argburs14/)
 * (@argburs14)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11667203)
 * Thanks [@cadbloke](https://wordpress.org/support/users/cadbloke/)
    What do you
   mean with “re-edit”? Edit something and save changes in the download post?
 *  Thread Starter [argburs14](https://wordpress.org/support/users/argburs14/)
 * (@argburs14)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11667531)
 * [@cadbloke](https://wordpress.org/support/users/cadbloke/) I tried you solution
   and worked, but it shares the download link (not direct download). I don’t want
   to share the link because I need my suscribers to visit my web. I hope Shafayat
   can help us or maybe have to wait for the next update.
    Thanks!
 *  [cadbloke](https://wordpress.org/support/users/cadbloke/)
 * (@cadbloke)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11668737)
 * [@argburs14](https://wordpress.org/support/users/argburs14/)
 * Control-J in your browser will show them the link the download is coming from.
   You can’t really hide the link unless it is always a temporary generated link
   but even then with Fiddler you can see where the file comes from. Google drive
   generated a temporary 333 character URL when it does my download – that is what
   this plugin really needs to return.
 * By the way, my edit does not break any obfuscation – there was none to start 
   with.
 * “Re-edit” means you need to re-link the file in the post and save it again so
   the link is regenerated.
 *  [dacman](https://wordpress.org/support/users/dacman/)
 * (@dacman)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11673209)
 * Many thanks to [@cadbloke](https://wordpress.org/support/users/cadbloke/) for
   the fix!
 * It worked fine for me. Perhaps it will be addressed in the next update.
 * I see that you also enjoy sailing.
 * May time and tide be with you…..
 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11680584)
 * We have fixed the issue; an update is coming on 1st July 2019.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Bad Request Error 400’ is closed to new replies.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/bad-request-error-400/#post-11680584)
 * Status: not resolved