# Reporting REST "Unknown resource" error

**URL:** <https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888>\
**Category:** Development\
**Tags:** error, reporting, rest\
**Created:** [May 12, 2015, 10:26am UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888 "2015-05-12T10:26:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maimoonak](https://talk.openmrs.org/letter_avatar/maimoonak/32/6_22734026db12803ebb3e059622ac3534.png) [@maimoonak](https://talk.openmrs.org/u/maimoonak)\
**Post date:** [May 12, 2015, 10:26am UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888/1 "2015-05-12T10:26:52Z")

</div>

Hi,

I am trying to access reports data via REST, but no url as explained in wiki ([https://wiki.openmrs.org/display/docs/Reporting+REST+Web+Services](https://wiki.openmrs.org/display/docs/Reporting+REST+Web+Services)) works for rest calls to reporting data.

The exception thrown is here [http://pastie.org/10184100](http://pastie.org/10184100). The url used for rest call is [http://xxx.xxx.xxx.xxx:8080/openmrs/ws/rest/v1/reportingrest/datasetdefinition](http://xxx.xxx.xxx.xxx:8080/openmrs/ws/rest/v1/reportingrest/datasetdefinition) . The module has data definitions as shown in images attached ![](https://talk.openmrs.org/uploads/default/878/69e6d643087cd646.png)

The versions are below :

- OpenMRS: 1.9.7
- Rest Web Services : 2.9.39bd19
- Reporting Compatibility : 1.5.8
- Reporting : 0.9.3
- Reporting rest module: 1.4

The module shows successful installation in manage modules. Am I using correct url and software versions for this?

@darius @ahabib

---

<div class="post-metadata">

**Author:** ![ahabib](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ahabib/32/528_2.png) [@ahabib](https://talk.openmrs.org/u/ahabib)\
**Post date:** [May 12, 2015, 10:42am UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888/2 "2015-05-12T10:42:04Z")

</div>

Try [http://xxx.xxx.xxx.xxx:8080/openmrs/ws/rest/v1/reportingrest/dataSetDefinition](http://xxx.xxx.xxx.xxx:8080/openmrs/ws/rest/v1/reportingrest/dataSetDefinition) (note the case difference). I noticed in a comment on the module Wiki page that the module documentation is outdated.

---

<div class="post-metadata">

**Author:** ![maimoonak](https://talk.openmrs.org/letter_avatar/maimoonak/32/6_22734026db12803ebb3e059622ac3534.png) [@maimoonak](https://talk.openmrs.org/u/maimoonak)\
**Post date:** [May 12, 2015, 10:52am UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888/3 "2015-05-12T10:52:01Z")

</div>

Thanks alot @ahabib . This resolved the issue.

---

<div class="post-metadata">

**Author:** ![rakeshbasa](https://talk.openmrs.org/letter_avatar/rakeshbasa/32/6_22734026db12803ebb3e059622ac3534.png) [@rakeshbasa](https://talk.openmrs.org/u/rakeshbasa)\
**Post date:** [July 13, 2015, 7:34am UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888/4 "2015-07-13T07:34:34Z")

</div>

I am facing the similar issue for the url: [http://localhost:8080/openmrs/ws/rest/v1/user?v=full&username=test](http://localhost:8080/openmrs/ws/rest/v1/user?v=full&username=test)

```
ERROR:
Unknown resource: v1/user
```

---

<div class="post-metadata">

**Author:** ![ahabib](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ahabib/32/528_2.png) [@ahabib](https://talk.openmrs.org/u/ahabib)\
**Post date:** [July 13, 2015, 7:49am UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888/5 "2015-07-13T07:49:44Z")

</div>

Do you have the webservices-rest module installed and running?

---

<div class="post-metadata">

**Author:** ![rakeshbasa](https://talk.openmrs.org/letter_avatar/rakeshbasa/32/6_22734026db12803ebb3e059622ac3534.png) [@rakeshbasa](https://talk.openmrs.org/u/rakeshbasa)\
**Post date:** [July 13, 2015, 8:00am UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888/6 "2015-07-13T08:00:48Z")

</div>

Yes I installed Rest Web Services of V 2.8.19024c, when I run Testing REST URIs I am facing the same error as I mentioned earlier

```
error!
msg: error
errorThrown: Internal Server Error
req: [object Object]
Object
KEY	VALUE
readyState	4
success	[POINTS BACK TO done] 
error	[POINTS BACK TO fail] 
responseText	"{\"error\":{\"message\":\"Unknown resou..."
status	500
statusText	"Internal Server Error"
```

---

<div class="post-metadata">

**Author:** ![wyclif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wyclif/32/19607_2.png) [@wyclif](https://talk.openmrs.org/u/wyclif)\
**Post date:** [July 14, 2015, 4:53pm UTC](https://talk.openmrs.org/t/reporting-rest-unknown-resource-error/1888/7 "2015-07-14T16:53:57Z")

</div>

What is the version of OpenMRS and module you are running?
