microsoft / PowerPlatformConnectors

This is a repository for Microsoft Power Automate, Power Apps, and Azure Logic Apps connectors
https://aka.ms/connectors
MIT License
964 stars 1.25k forks source link

[BUG] The response is not in a JSON format #2211

Open dgdb01 opened 1 year ago

dgdb01 commented 1 year ago

Type of Connector

Certified Connector

Name of Connector

JIRA Search (Independent Publisher) (Preview)

Describe the bug

I'd use API Token to login for the service, however when i execute the JQL in connector, it did returns with following, seems have problem to connect the api

{ "statusCode": 404, "headers": { "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "Atl-Missing-Tcs": "true", "Expect-Ct": "report-uri=\"https://web-security-reports.services.atlassian.com/expect-ct-report/atlassian-proxy\",max-age=86400", "X-Content-Type-Options": "nosniff", "X-Xss-Protection": "1; mode=block", "Atl-Traceid": "9f08002616b01f0e", "Report-To": "{\"endpoints\": [{\"url\": \"https://dz8aopenkvv6s.cloudfront.net\"}],\"group\": \"endpoint-1\",\"include_subdomains\": true,\"max_age\": 600}", "Nel": "{\"failure_fraction\": 0.001,\"include_subdomains\": true,\"max_age\": 600,\"report_to\": \"endpoint-1\"}", "Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload", "Timing-Allow-Origin": "*", "x-ms-apihub-cached-response": "false", "x-ms-apihub-obo": "false", "Date": "Tue, 13 Dec 2022 10:20:29 GMT", "Content-Type": "application/json", "Content-Length": "3015" }, "body": { "error": { "code": 404, "source": "asia-001.azure-apim.net", "clientRequestId": "3e401d2f-58ce-4bb0-bb14-9ca41e06147d", "message": "The response is not in a JSON format.", "innerError": "<!DOCTYPE html>\n<html lang=\"en\">\n \n <meta charset=\"utf-8\">\n <meta name=\"description\" content=\"\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n Atlassian Cloud Notifications - Page Unavailable\n <link rel=\"stylesheet\" href=\"/_edge/resources/aui-prototyping.css\">\n \n \n <div id=\"page\">\n <section id=\"content\" role=\"main\" class=\"aui-page-notification aui-page-size-medium\">\n <div id=\"notifications\" class=\"aui-page-panel\">\n <div class=\"aui-page-header-inner\">\n <section class=\"aui-page-panel-content\">\n

Page unavailable

\n <div class=\"aui-page-notification-description\">\n Your Atlassian Cloud site is currently unavailable.\n

\n Please check <a href=\"https://status.atlassian.com\">Atlassian Status for known problems.\n
\n If there are no known problems and your page hasn't appeared again in 5-10 minutes then please contact our support team.\n
\n
\n

\n <a href=\"https://status.atlassian.com\" class=\"aui-button aui-button-primary\">\n Atlassian Status\n \n  \n <a href=\"https://support.atlassian.com\" class=\"aui-button\">\n Contact Support\n \n

\n \n
\n \n \n <footer id=\"footer\">\n <section class=\"footer-body\">\n \n <div id=\"footer-logo\"><a href=\"https://www.atlassian.com/\" target=\"_blank\">Atlassian\n \n \n \n \n\n" } } }

Is this a security bug?

No, this is not a security bug

What is the severity of this bug?

Severity 1 - Connector is broken or there's a very serious issue

To Reproduce

write a JQL to search project by id can reproduce the issue

Expected behavior

return jira keys under project

Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build)

Additional context

nil

dtsoden commented 1 year ago

I had similar issues. check your value for the field "Jira instance host name"

do not use --> https://example.atlassian.net/ do not use --> example.atlassian.net USE --> example