http-status-code-400

Instagram API Locations Endpoint

爱⌒轻易说出口 提交于 2019-12-11 02:35:14
问题 I'm trying to access the Instagram API location endpoint with the below call, but keep getting the error further below: https://api.instagram.com/v1/locations/search/?lat=40.758895&lng=-73.985131&access_token=MY-ACCESS-TOKEN error: {"meta":{"error_type":"APIError","code":400,"error_message":"Endpoint temporarily unavailable; please retry shortly"}} This has been consistent for the last 12+ hours. Is the Instagram API truly this unreliable or am I missing something? (Note: this is the lat/lon

Why am I getting a HTTP 400 bad request response when sending a manually-crafted HTTP request over a TCP socket?

ⅰ亾dé卋堺 提交于 2019-12-10 18:02:22
问题 I'm trying to build an HTTP request manually (as a string) and send it over a TCP socket, this is what I'm trying to do: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.MalformedURLException; import java.net.Socket; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; /** * SimpleHttpClient.java (UTF-8) * * Mar 27, 2014 * * @author tarrsalah.org */ public class

400 status error when posting form data in ASP.Net Core [closed]

拜拜、爱过 提交于 2019-12-10 04:26:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am developing an ASP.Net Core 2.0 application and run it on Linux/Nginx/Kestrel. On the development environment (Windows 10) everything runs smoothly. Also when running the app with "dotnet run" in the project directory. On the production environment (Debian 8/Kestrel) all form POSTs fail with HTTP status code

Google Drive API watch 400 error Ruby on Rails

こ雲淡風輕ζ 提交于 2019-12-08 17:49:29
I'm implementing the google drive api using the OAuth2 gem (ruby on rails). I'm not using the client library because I'm also integrating other API's, so I'm trying to make all these calls as modular as possible. I'm having trouble with the this request: POST https://www.googleapis.com/drive/v2/changes/watch . I keep getting this error: {"errors"=>[{"domain"=>"global", "reason"=>"required", "message"=>"entity.resource"}], "code"=>400, "message"=>"entity.resource"}: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "entity.resource" } ], "code": 400, "message":

Spring Boot File Upload Bad Request 400

妖精的绣舞 提交于 2019-12-08 08:39:34
问题 Hello im writing an Webapplication using Spring Boot and AngularJs and need an simple file upload which is not working at the moment. I already read that spring boot should autoconfigure the multipart upload itself when the mvc dependency is present. From :https://spring.io/guides/gs/uploading-files/ As part of auto-configuring Spring MVC, Spring Boot will create a MultipartConfigElement bean and make itself ready for file uploads. Javascript Function which sends the Request: var postFormData

File Upload in AngularJS JSON Spring MVC application 400 Bad Request Required request part is not present

浪尽此生 提交于 2019-12-08 06:38:24
问题 We are using AngularJS 1.5.8 , Spring 3.2.17, Jackson 2.6.7; we need to implement file upload with a JSON DTO object. We are unable to see success with file upload with several configurations and approaches, DTO alone as json request parameter is working fine. Thanks in advance! snippets of bill_payment.html <form name="billPaymentForm" enctype="multipart/form-data" ng-submit="onSaveIRFBillPayment()"> <!-- some more elements as part of billPaymentDTO --> <td class="fielddata6"> <input type =

Google Drive API watch 400 error Ruby on Rails

自闭症网瘾萝莉.ら 提交于 2019-12-08 04:00:24
问题 I'm implementing the google drive api using the OAuth2 gem (ruby on rails). I'm not using the client library because I'm also integrating other API's, so I'm trying to make all these calls as modular as possible. I'm having trouble with the this request: POST https://www.googleapis.com/drive/v2/changes/watch. I keep getting this error: {"errors"=>[{"domain"=>"global", "reason"=>"required", "message"=>"entity.resource"}], "code"=>400, "message"=>"entity.resource"}: { "error": { "errors": [ {

Spring Boot File Upload Bad Request 400

时间秒杀一切 提交于 2019-12-07 17:02:31
Hello im writing an Webapplication using Spring Boot and AngularJs and need an simple file upload which is not working at the moment. I already read that spring boot should autoconfigure the multipart upload itself when the mvc dependency is present. From : https://spring.io/guides/gs/uploading-files/ As part of auto-configuring Spring MVC, Spring Boot will create a MultipartConfigElement bean and make itself ready for file uploads. Javascript Function which sends the Request: var postFormData = function (file, url, successCallback, errorCallback, progressCallback) { var xhr = new

Content type for file part of the multipart/form-data request is set wrong by the client

*爱你&永不变心* 提交于 2019-12-07 12:43:18
问题 I'm trying to send multipart/form-data with following JavaScript and jQuery: var formData = new FormData(); formData.append("projectName", $("#projectNameInput").val()); var file = $("#fileInput")[0].files[0]; formData.append("content", file); var xhr = new XMLHttpRequest(); xhr.open('POST', '/project', true); xhr.onload = function(ev) { // Handling logic omitted }; xhr.send(formData); However, some client browsers (Firefox and Chrome) receive 400 Bad Request from the server. While examining

Bad request error while adding a lookup GUID field in CRM database using Web API

ⅰ亾dé卋堺 提交于 2019-12-07 07:10:01
问题 I want to insert a new record in CRM's custom entity where one of the fields is of lookup type i.e. new_contactid and it is dependent on the contact entity. I have also referred Set Values of all Data Types using Web API in Dynamics CRM Through C#. My JSON data is as below: { "new_transactionnumber":"114", "new_transactionamount":650, "new_transactiondate":"2018-01-29T15:01:00.000Z", "new_contactid_contact@odata.bind":"/contacts(afb9e006-6be5-e711-80ed-bef806786223)", "new_moveid_new_move