swalker-888/google-indexing-api-bulk

Error 400: "Missing attribute. 'url' attribute is required.",

salvatorecapolupo opened this issue · 2 comments

Hi!

Could you push a working example of urls.txt file?

I tried to put this format i.e:

https://canonicaldomain.com
https://canonicaldomain.com/url1
https://canonicaldomain.com/url2
https://canonicaldomain.com/url3

but I got this error:

--batch_bxcXt4TswdrogJK9TDNfl1ZzywnLgbL-
Content-Type: application/http
Content-ID: response-

HTTP/1.1 400 Bad Request
Vary: Origin
Vary: X-Origin
Vary: Referer
Content-Type: application/json; charset=UTF-8

{
  "error": {
    "code": 400,
    "message": "Missing attribute. 'url' attribute is required.",
    "status": "INVALID_ARGUMENT"
  }
}

--batch_bxcXt4TswdrogJK9TDNfl1ZzywnLgbL---

go to api rights confirmation, and change type to owner and enter npm install requests into shell than use script

i've added requests as a dependency so this error should be resolved now, thanks