Skip to content
  • Categories
  • Recent
  • Popular
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB-ActivityPub Bridge Test Instance

  1. Home
  2. Categories
  3. General Discussion
  4. AP Test (community.nodebb.org)
  5. @julian

@julian

Scheduled Pinned Locked Moved AP Test (community.nodebb.org)
3 Posts 1 Posters 7 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • raphael@mastodon.communick.comR This user is from outside of this forum
    raphael@mastodon.communick.comR This user is from outside of this forum
    raphael@mastodon.communick.com
    wrote on last edited by
    #1

    @julian

    typescript code

    ```
    const REQUEST_OPTIONS = {
    redirect: 'follow' as RequestRedirect,
    headers: { 'Accept': 'application/activitypub+json, application/ld+json' },
    'User-Agent': 'curl/8.12.1'
    }

    const response = await fetch('https://forum.wedistribute.org/category/5/fediverse', REQUEST_OPTIONS)

    try {
    return await response.json()
    }
    catch(exc) {
    console.log(response.url)
    console.log(response.headers)

    throw exc
    }
    ```

    raphael@mastodon.communick.comR 1 Reply Last reply
    0
    • raphael@mastodon.communick.comR raphael@mastodon.communick.com

      @julian

      typescript code

      ```
      const REQUEST_OPTIONS = {
      redirect: 'follow' as RequestRedirect,
      headers: { 'Accept': 'application/activitypub+json, application/ld+json' },
      'User-Agent': 'curl/8.12.1'
      }

      const response = await fetch('https://forum.wedistribute.org/category/5/fediverse', REQUEST_OPTIONS)

      try {
      return await response.json()
      }
      catch(exc) {
      console.log(response.url)
      console.log(response.headers)

      throw exc
      }
      ```

      raphael@mastodon.communick.comR This user is from outside of this forum
      raphael@mastodon.communick.comR This user is from outside of this forum
      raphael@mastodon.communick.com
      wrote on last edited by
      #2

      @julian

      It fails if I just use "/category/5" url (without the fediverse at the end), it fails if go straight to the redirected url (with "/fediverse?lang=en-US").

      It also fails if I use the curl User-Agent, or if I don't use any user agent at all.

      raphael@mastodon.communick.comR 1 Reply Last reply
      0
      • raphael@mastodon.communick.comR raphael@mastodon.communick.com

        @julian

        It fails if I just use "/category/5" url (without the fediverse at the end), it fails if go straight to the redirected url (with "/fediverse?lang=en-US").

        It also fails if I use the curl User-Agent, or if I don't use any user agent at all.

        raphael@mastodon.communick.comR This user is from outside of this forum
        raphael@mastodon.communick.comR This user is from outside of this forum
        raphael@mastodon.communick.com
        wrote on last edited by
        #3

        @julian

        Nevermind! Typo in the header...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Popular