Found error

General Discussion

Suggested Topics


  • Error Forbidden

    General Discussion
    2 Votes
    6 Posts
    536 Views

    Ok I had similar happen a day or so ago, sans error message.

    I eventually had to discarded the post entirely and start again. That worked. No need to log out from NodeBB (1.16.2), this was on Safari iOS 14.3 on iPhone.

  • 0 Votes
    2 Posts
    224 Views

    I think that function was removed, you might have some old code that is still calling it. What is your NodeBB version and the rest of the stack trace?

  • 0 Votes
    4 Posts
    446 Views

    @byAppeL look in your browser address bar. Are you accessing the site at http://foro.az-rp.com:4567? My guess is that the port (:4567) does not show up in your address bar, and you're accessing the site at one of the default ports. In that case, remove the :4567 from the url value in config.json.

    I don't know how many times I'll have to say this, but the url value in config.json should be set to exactly the url at which you access your site. The protocol, domain, path, and port should all be identical to what you see in the address bar of your browser.

  • 0 Votes
    13 Posts
    3k Views

    For anyone using NodeBB to upload a screenshot from node.js

    const buffer = await createImage({ path: `screenshot/annotation:${ annotationID }` , encoding: 'binary' }) const result = await rp({ url: `${ endpoint }/util/upload?_uid=${ _uid }`, method: 'POST', json: true, headers: { Authorization , 'Content-Type': 'multipart/form-data' }, formData: { 'files[]': { value: buffer, options: { filename: `annotaion-${ annotationID }.jpg`, contentType: 'image/jpg' } } }, })
  • 0 Votes
    3 Posts
    4k Views

    npm i mmmagic