Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
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
We Distribute
raphael@mastodon.communick.comR

raphael@mastodon.communick.com

@raphael@mastodon.communick.com
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • Hey @julian, can you help me with a quick debugging session?
    raphael@mastodon.communick.comR raphael@mastodon.communick.com

    @julian

    Nevermind! Typo in the header...

    ActivityPub

  • Hey @julian, can you help me with a quick debugging session?
    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.

    ActivityPub

  • Hey @julian, can you help me with a quick debugging session?
    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
    }
    ```

    ActivityPub

  • Hey @julian, can you help me with a quick debugging session?
    raphael@mastodon.communick.comR raphael@mastodon.communick.com

    Hey @julian, can you help me with a quick debugging session?

    Why would ` curl 'https://forum.wedistribute.org/category/5/fediverse' -H 'Accept: application/activity+json, application/ld+json'
    `

    return the expected JSON LD representing the actor, but the exact equivalent request fail with node.js?

    ActivityPub
  • Login

  • Don't have an account? Register

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