My Business
5.2K members online now
5.2K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Error 404 on basic java api example.

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi -

We are testing our access to GMB API with the java basic example. We are getting this 404 error:

 

Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "Method ListAccounts not found for service mybusiness.googleapis.com",
    "reason" : "notFound"
  } ],
  "message" : "Method ListAccounts not found for service mybusiness.googleapis.com",
  "status" : "NOT_FOUND"
}
	at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
	at GoogleMyBusinessApi.main(GoogleMyBusinessApi.java:88)

We already have our project approved and we have done all the verications. Are there any other steps needed to use the API?

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Axier R
April 2017

Re: Error 404 on basic java api example.

Google Employee
# 5
Google Employee

Hi @Axier R,

 

We have sent an email to your email address on this board regarding your issue. Please just reply to that email I sent and answer all questions accurately.

 

Please also check your spam folder in case our emails were inadvertently filtered as spam.

 

Thanks,

The Google My Business API team

View solution in original post

Re: Error 404 on basic java api example.

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Hi -

Since the last post, we have been doing all kind of tests, including OAuth Playground, and the results are the same.

 

HTTP/1.1 404 Not Found
Content-length: 150
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Transfer-encoding: chunked
Vary: Origin, X-Origin, Referer
Server: ESF
-content-encoding: gzip
Cache-control: private
Date: Fri, 31 Mar 2017 06:46:40 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="37,36,35"
Content-type: application/json; charset=UTF-8
{
  "error": {
    "status": "NOT_FOUND", 
    "message": "Method ListAccounts not found for service mybusiness.googleapis.com", 
    "code": 404
  }
}

 Desperately we have tried creating other projects with the API enabled. Even though we know that they are not approved and they wouldn't work. We know that this error responds to using a project other than the approved one. How can I know if I am working with the approved project?

 

Thanks,

Enea360 development department.

 

Re: Error 404 on basic java api example.

Google Employee
# 3
Google Employee

Hi @Axier R,

 

The 404 Method not found error typically happens when you are using a different Project ID from the one we whitelisted for your company to access the Google My Business API.

 

We’ll reach out to you privately on a separate thread for more details.

 

Thanks,

The Google My Business API team

Error 404 on basic java api example.

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Hi @Shalini S

 

We have already seen this answer in other posts. So, How can we know if we are working with the approved project? Have you contact us in some way? We have not received any messages. Please, do it as soon as possible.

 

Thanks,

Enea360 development department.

Marked as Best Answer.
Solution
Accepted by topic author Axier R
April 2017

Re: Error 404 on basic java api example.

Google Employee
# 5
Google Employee

Hi @Axier R,

 

We have sent an email to your email address on this board regarding your issue. Please just reply to that email I sent and answer all questions accurately.

 

Please also check your spam folder in case our emails were inadvertently filtered as spam.

 

Thanks,

The Google My Business API team

Error 404 on basic java api example.

Follower ✭ ☆ ☆
# 6
Follower ✭ ☆ ☆

 i am getting same issue please help me.

 

Re: Error 404 on basic java api example.

Google Employee
# 7
Google Employee

Hi @mKonnekt D,

 

The 404 Method not found error typically happens when you are using a different Project ID from the one we whitelisted for your company to access the Google My Business API.

 

We’ll reach out to you privately on a separate thread for more details.

 

Thanks,

The Google My Business API team

Error 404 on basic java api example.

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

Hi Shalini,

 

I am getting the same error and didn't able to find any issues with my service account.

 

error: {"code":404,"errors":[{"domain":"global","message":"Not Found","reason":"notFound"}],"message":"Not Found"}

 

Can you please help me ASAP?

Re: Error 404 on basic java api example.

Google Employee
# 9
Google Employee

Hi @Abhishek L,

 

We’ll reach out to you on a separate email thread for more details regarding your project.

 

Thanks,

The Google My Business API team

Error 404 on basic java api example.

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Hi Shalini,

 

We have the same problem, even we have only one Project in the list and we have enabled the Api. Can you help us.

{
 
"error": {
   
"status": "NOT_FOUND",
   
"message": "Method not found.",
   
"code": 404
 
}
}