signalpoint / jDrupal

A JavaScript Library and API for Drupal Applications
http://jdrupal.tylerfrankenstein.com/
GNU General Public License v2.0
76 stars 38 forks source link

Failed to load resource: the server responded with a status of 400 (Bad Request) #78

Closed signalpoint closed 6 years ago

signalpoint commented 6 years ago

Related issue here: https://www.drupal.org/node/2571435

Somewhere along the line, it became a requirement that some data actually be sent along when doing a POST, which makes sense. For a long time, the Services module in Drupal 7 just needed a POST to be sent, but not actually have any data sent along with the request, and that would work.

As things evolved, this error is starting to creep up when making a POST to ?q=drupalgap/system/connect.json:

Failed to load resource: the server responded with a status of 400 (Bad Request)

jDrupal 7 needs to be updated to send along some empty POST data to get around this error.