Google Error Method Not Allowed
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Pinterest Api Method Not Found
Learn more about Stack Overflow the company Business Learn more about hiring developers 405 method not allowed or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack http 405 Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “NetworkError: 405 Method Not Allowed” on Google contact delete up vote 2 down vote favorite 1 I am trying to delete a Google Contact through javascript. As per v3 of Google Contacts api I have defined: scope to https://www.google.com/m8/feeds And authenticated user, and got the access_token. And as per the v3 documentation on this page, trying to delete a contact like this: $.ajax({ url: 'https://www.google.com/m8/feeds/contacts/default/full/temp123info@gmail.com?access_token=ya29.AHES6ZQoqUgoYmDzXyo-WsSlKv1-_2D_HzmXuH-wBuTR3e1ADxO0VWM', type: 'DELETE', success: function(res) { console.log(res); }, error: function(error) { console.log(error); } }); Getting this error: "NetworkError: 405 Method Not Allowed - https://www.google.com/m8/feeds/contacts/laiquedaudpota43@gmail.com/full/temp123info@gmail.com?access_token=ya29.AHES6ZQoqUgoYmDzXyo-WsSlKv1-_2D_HzmXuH-wBuTR3e1ADxO0VWM" Any help would be appreciated. Thanks. javascript api google-contacts http-status-code-405 share|improve this question asked Oct 30 '13 at 7:03 Laique 2718 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted Please see my answer here . Make use of the google client api for javascript. share|improve this answer answered Nov 4 '13 at 11:43 sufyan.shoaib 673514 add a comment| up vote 3 down vote You are experiencing something called CORSS (Cross-Origin XMLHttpRequest) if you open chrome dev tools you will see that the browser ignored your 'delete' type and sent OPTIONS instead. this is happening when you try to call a server from other origin, the browser will fire an extra request with data type OPTIONS to the server to know what is required in order to send your original delete post. The problem is that the server is not allowing 'OPTIONS' method type. if you ask me, ill try to find proxy (jsonp) service for google contact . or an api Please have a look here: https://developers.google.com/api-client-library/javascript/start/start-js I think you should use their standard api for
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign http://stackoverflow.com/questions/19675835/networkerror-405-method-not-allowed-on-google-contact-delete up google app engine: 405 method not allowed up vote 5 down vote favorite What are the causes for the the error NetworkError: 405 Method Not Allowed I was using a web service and all of a sudden it started returning that error. its not maintained so it will not get fixed. I am curious if i can do something about this. The http://stackoverflow.com/questions/7989911/google-app-engine-405-method-not-allowed offending web service url is: http://jsonpdb.appspot.com/add html google-app-engine share|improve this question asked Nov 3 '11 at 3:20 mkoryak 26k46156225 add a comment| 3 Answers 3 active oldest votes up vote 8 down vote accepted The method (GET/POST/HEAD etc) you're trying to use on that URL is not supported by the app. Are you sure the API expects you to use the method you're using on that URL? share|improve this answer answered Nov 3 '11 at 3:37 Nick Johnson 89.3k13106177 yes, its in the api. you can see their example of add is broken on their api now: jsonpdb.appspot.com –mkoryak Nov 3 '11 at 13:15 add a comment| up vote 6 down vote Most common cause is using the wrong 'get' vs 'post' for the response. Verify what's being sent and that the correct method appears in the your handler. class MainHander(webapp.RequestHandler): def get(self): ... def post(self): .... def delete(self): .... Another common issue is having the main dispatch section parse urls, but then not supply them in the get/post/delete def main(): application = webapp.WSGIApplication( [ (r'/upload/([^/]+)?/?', UploadFileHandler), The regex there has () in it... that'
Sign in Pricing Blog Support Search GitHub This repository Watch 49 Star 386 Fork 89 jennybc/googlesheets Code Issues 43 Pull requests 3 Projects 0 Pulse Graphs New issue Error in gsheets_POST when using gs_add_row #168 Closed martinjhnhadley opened https://github.com/jennybc/googlesheets/issues/168 this Issue Sep 12, 2015 · 5 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants martinjhnhadley commented Sep 12, 2015 I'm having difficulty using gs_add_row when used with pre-existing Google Sheets, I always get the following error: Error in gsheets_POST(lf_post_link, XML::toString.XMLNode(new_row)) :
client error: (405) Method Not Allowed I followed the tutorial in your README.md as follows: library(googlesheets) library(dplyr) df.colnames <- method not c("Project Short Name","Project Start Date","Proj Stuff") my.df <- data.frame(a = "cannot be empty", b = "cannot be empty", c = "cannot be empty") colnames(my.df) <- df.colnames ## Create a new workbook populated by this data.frame: mynewSheet <- gs_new("mynewsheet", input = my.df, trim = TRUE) ## Append Element mynewSheet <- mynewSheet %>% gs_add_row(input = c("a","b","c")) mynewKey <- mynewSheet$sheet_key Rows are added successfully, I even get the cheery message Row successfully appended. I now provide mynewKey method not allowed to gs_key, as I would if this were a new sheet I were working with and attempt to add a new row using gs_add_row (Note: before evaluating these lines, I navigate to the Google Sheet and make it public to the web): myExistingWorkbook <- gs_key(mynewKey, visibility = "public") ## Attempt to gs_add_row myExistingWorkbook <- myExistingWorkbook %>% gs_add_row(input = c("a","b","c"), ws="Sheet1", verbose = TRUE) Error in gsheets_POST(lf_post_link, XML::toString.XMLNode(new_row)) : client error: (405) Method Not Allowed Things that I have tried: 1) Published the Google Sheet to the web (as per #126 (comment)) 2) Enabled the sheet as editable to the public Note I'm still unsure of best manners regarding Github Issues and SE, I do not want to appear to be spamming you but would like to help anybody else having similar problems by cross-positing - and also to advertise your package. Please do advise if you have any opinions on the matter. My SE question on the same is here: http://stackoverflow.com/q/32537882/1659890 Owner jennybc commented Sep 12, 2015 I'll talk a look at this sometime this weeekend. Can you give me the key or URL to a Sheet where you've had this problem and where I can write? So, it should be something I can destroy, but you've said above you've tried making the sheet editable to the public,