Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Error when calling OptimizeAPI exportReportDefinitions #192

Closed
SamanthaHolstine opened this issue Jun 17, 2024 · 0 comments
Closed

404 Error when calling OptimizeAPI exportReportDefinitions #192

SamanthaHolstine opened this issue Jun 17, 2024 · 0 comments

Comments

@SamanthaHolstine
Copy link

When calling exportReportDefinitions, a 404 error is returned

SDK Component

OptimizeAPI

Expected Behavior

The method should return an Optimize report in JSON form.

Current Behavior

HTTPError: Response code 404 (Not Found) (request to https://jfk-1.optimize.camunda.io/0a1ec3c3-0e06-442e-afe2-255934277775/api/public/export/dashboard/definition/json)

Possible Solution

It looks like the code is calling api/public/export/dashboard/definition/json instead of api/public/export/report/definition/json

Steps to Reproduce

Using my creds (Optimize URL above), the line of code being called looks like this:

const reportDefs = optimize.exportReportDefinitions(["e25f1a5a-4863-499e-b76f-89bd9dd3b1cf"]);

Context (Environment)

At the moment, there is a low chance this is being used in the wild, as this issue would result in 404 errors every time, but it would be helpful to be fixed before this part of the API becomes super popular.

@jwulf jwulf closed this as completed in e5f5da7 Jun 18, 2024
github-actions bot pushed a commit that referenced this issue Jun 18, 2024
## [8.6.6](v8.6.5...v8.6.6) (2024-06-18)

### Bug Fixes

* **optimize:** fix exportReportDefinitions REST call path ([e5f5da7](e5f5da7)), closes [#192](#192)
github-actions bot pushed a commit that referenced this issue Jun 18, 2024
## [8.6.6](v8.6.5...v8.6.6) (2024-06-18)

### Bug Fixes

* **optimize:** fix exportReportDefinitions REST call path ([e5f5da7](e5f5da7)), closes [#192](#192)
dfulgham pushed a commit to dfulgham/camunda-8-js-sdk that referenced this issue Jul 8, 2024
## [8.6.6](camunda/camunda-8-js-sdk@v8.6.5...v8.6.6) (2024-06-18)

### Bug Fixes

* **optimize:** fix exportReportDefinitions REST call path ([e5f5da7](camunda@e5f5da7)), closes [camunda#192](camunda#192)
dfulgham pushed a commit to dfulgham/camunda-8-js-sdk that referenced this issue Jul 8, 2024
## [8.6.6](camunda/camunda-8-js-sdk@v8.6.5...v8.6.6) (2024-06-18)

### Bug Fixes

* **optimize:** fix exportReportDefinitions REST call path ([e5f5da7](camunda@e5f5da7)), closes [camunda#192](camunda#192)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant