$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: true, vro: true, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content
avatar image
Former Member

Export to HTML throwing RWS 00058 Not acceptable, (RWS 00058)


I am trying to export to HTML and it is throwing the above error.

The Header is "text/html" and file extension for download is also .html.

The GET request is ...raylight/v1/documents/docid

Anything i have to do or missing here?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 21, 2016 at 12:35 PM

    If on 4.1. Use accept header as application/zip for zipped HTML if want to export a webi document in listing mode.

    Else you can export a report in the webi document directly to html.

    The GET request is ...raylight/v1/documents/docid/reports/reportid

    Accept header is text/html

    You can refer to the Restful guide for more details.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 26, 2016 at 07:52 AM

    Hi Prithvi,

       I am trying to get the document in HTML and face the issue mentioned above. I have used "text/html" as the Accept header. My get request is just raylight/v1/documents/docid/

    I do get a response when I try with appliaction/xml as Accept header, but the response code is 406 when I hit the same URL with text/html

      Any suggestion?



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vish,

      You cannot export the whole document to HTML directly as there can be multiple pages, so the for the URL you are using, the HTML export is a zip file with all of the pages zipped up.  As per the documentation, the Accept header should be "application/zip".

      You can export  a report in listing mode as a single HTML file using:

      GET  /raylight/v1/documents/<docId>/reports/<reportId>

      this will work with Accept:  text/html

      If you want individual pages instead of a long single page use:

      GET  /raylight/v1/documents/<docId>/reports/<reportId>/pages/<pageNum>

      See the following sections of the documentation:

      • Exporting a Document in Listing mode
      • Exporting a Report in Listing mode
      • Exporting a Report as a Series of Pages