• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • App Market Developer Platform
This question was closed Apr 02 at 09:46 PM by Clover_Community_Bot for the following reason: automated

question

adityaer avatar image
adityaer asked · Feb 08, 2017 at 05:29 PM

APIs NOT working - even on the developer portal

None of the APIs on https://www.clover.com/api_docs - are working. Browser console shows there is a CORS issue. You may need to redeploy with changes

Here - is a screenshot ! image description

Comment
· 1 comment
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Cladius avatar image Cladius · Feb 08, 2017 at 08:00 PM

For eg: The error noticed in Chrome's console is XMLHttpRequest cannot load https://apisandbox.dev.clover.com/v3/.... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://sandbox.dev.clover.com' is therefore not allowed access. The response had HTTP status code 400.

Strangely, this error occurs when the filter query is applied via the developer portal. Without the filter query things seem to be working fine.

0 · ·

1 Answer

Cladius avatar image
Cladius answered · Feb 09, 2017 at 01:16 PM Locked

Further investigation has revealed that there are 2 defects that need to be fixed:

1) The filter operand in the developer portal is '==" whereas it should just be '='.

2) In case of errors, the CORS headers (i.e. Access-Control-Allow-Methods, Access-Control-Allow-Origin) are missing in the response. This leads to errors in the Browser's console instead of the error showing up in the actual page.

· 3 comments · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mark Mullan avatar image Mark Mullan ♦ · Feb 10, 2017 at 06:53 PM

Hi @Cladius,

What browser are you seeing the CORS error in? Our US PROD API docs are working fine for me in Chrome.

Thanks,

Mark

0 · ·
Cladius avatar image Cladius · Feb 10, 2017 at 08:19 PM

Hi Mark,

As mentioned in my comments, the issue happens only when a filter query is set and the operand of equality check is selected. All other requests are working fine for me. FYI, I am encountering the issue on Google Chrome (55.0.2883.87). I would like to attach a screenshot but I am unable to find an option to do so.

Regards, Cladius

0 · ·
Cladius avatar image Cladius · Feb 14, 2017 at 01:05 PM

Hi @mark.mullan

Were you able to reproduce the issue or do you need more pointers?

Regards, Cladius

0 · ·

Welcome to the
Clover Developer Community

question details

2 People are following this question.

mark.mullan follows this question Cladius follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Clover not attaching CORS headers 0 Answers

CORS preflight and Authorization Header 2 Answers

401 Unauthorized error requesting token 1 Answer

Unable to access clover apis from front end angular js web application getting CORS Issue 1 Answer

CORS issue when trying to authenticate with Clover WebApp 1 Answer

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.