REST rpc/metadata-query error

Lex Clay shared this problem 5 months ago
Resolved

Hi Guys,

Version: 9.7.2

Code: 20220602

When using the api/rpc/metadata-query call, no matter what the query, the response I get is:

{
    "code": 401,
    "reason": "UNAUTHORIZED",
    "description": "No Authorised Operations are available"
}
Webservices are enabled, is there some hidden config setting I need to add to enable this?..I doubt it's to do with the payload or headers, all other calls we're using work as expected, but just in case...


options = {
  'method': 'POST',
  'url': 'https://dev.url.co.uk:8443/api/rpc/metadata-query',
  'headers': {
    'Authorization': 'RHINOANALYTICS ts=1661352221568, nonce=3370ddc4-37d9-41b9-9f24-ada181fdc4bf, token=eyJ0....etc',
    'Content-Type': 'application/json',
    'Accept': 'application/vnd.yellowfin.api-v1+json;'
  },
  body: JSON.stringify({
    "query": "select * from person",
    "password": "xxxx" // I've tried with and without the database password option
  })

Replies (2)

photo
1

Nevermind, I forgot about the init-param in web.xml

photo
1

Hi Lex,

Thank you for the update. I'll go ahead and close this case.

Please let us know if anything else comes up that we can help with.

Have a great day,

David

Leave a Comment
 
Attach a file