Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Can't view some posts from Mastodon and issue on subject

Technical Support
7 2 8
  • Hello,
    I believe since updating NodeBB to v4.6.0 (before, everything seemed to work) I've been having some issues with my NodeBB instance and some Mastodon posts.

    The first problem is that some posts simply don't appear, not even when searching for them. For example:

    https://poliversity.it/@skariko/115378312894874276 if I search for it on citiverse.it it doesn't appear, whereas if I search for it here on community.nodebb.org it appears regularly.

    From my server I receive it like this:

    curl -s -H "Accept: application/activity+json" https://poliversity.it/@skariko/115378312894874276 | python3 -m json.tool
    {
        "@context": [
            "https://www.w3.org/ns/activitystreams",
            {
                "ostatus": "http://ostatus.org#",
                "atomUri": "ostatus:atomUri",
                "inReplyToAtomUri": "ostatus:inReplyToAtomUri",
                "conversation": "ostatus:conversation",
                "sensitive": "as:sensitive",
                "toot": "http://joinmastodon.org/ns#",
                "votersCount": "toot:votersCount",
                "litepub": "http://litepub.social/ns#",
                "directMessage": "litepub:directMessage",
                "blurhash": "toot:blurhash",
                "focalPoint": {
                    "@container": "@list",
                    "@id": "toot:focalPoint"
                }
            }
        ],
        "id": "https://poliversity.it/users/skariko/statuses/115378312894874276",
        "type": "Note",
        "summary": null,
        "inReplyTo": null,
        "published": "2025-10-15T13:02:18Z",
        "url": "https://poliversity.it/@skariko/115378312894874276",
        "attributedTo": "https://poliversity.it/users/skariko",
        "to": [
            "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
            "https://poliversity.it/users/skariko/followers",
            "https://feddit.it/c/informatica",
            "https://feddit.it/c/informatica/followers"
        ],
        "sensitive": false,
        "atomUri": "https://poliversity.it/users/skariko/statuses/115378312894874276",
        "inReplyToAtomUri": null,
        "conversation": "tag:poliversity.it,2025-10-15:objectId=9243092:objectType=Conversation",
        "content": "<p>Il vostro amore per Tor sar\u00e0 raddoppiato!</p><p><span class="\&quot;h-card\&quot;" translate="\&quot;no\&quot;"><a href="\&quot;https://feddit.it/c/informatica\&quot;" class="\&quot;u-url" rel="\&quot;nofollow" target="\&quot;_blank\&quot;">@<span>informatica</span></a></span> </p><p>Come (quasi) tutti gli anni \u00e8 possibile fare una <a href="\&quot;https://donate.torproject.org/\&quot;" target="\&quot;_blank\&quot;" rel="\">donazione a Tor</a> che verr\u00e0 raddoppiata da <a href="\&quot;https://powerupprivacy.com/\&quot;" target="\&quot;_blank\&quot;" rel="\&quot;nofollow">alcuni supporter speciali</a>.</p><p>In                                            sostanza se voi donate 25\u20ac alcuni supporter raddoppiare la donazione donando a loro volta altri 25\u20ac e lo faranno fino a un totale 250.000\u20ac!</p><p>Se avevate intenzione dunque di                                            fare una donazione \u00e8 probabilmente questo il periodo migliore. E, in base a quanto donerete, potrete ricevere a casa anche alcuni regali come adesivi, magliette, cappellini o felpe. \ud83d\                                           udc9c</p><p><a href="\&quot;https://blog.torproject.org/2025-fundraiser-donations-matched/\&quot;" target="\&quot;_blank\&quot;" rel="\&quot;nofollow" translate="\&quot;no\&quot;"><span class="\&quot;invisible\&quot;">https://</span><span class="\&quot;ellipsis\&quot;">blog.torproject.org/2025-fundr</span><span class="\&quot;invisible\&quot;">aiser-donations-matched/</span></a></p>",
        "contentMap": {
            "it": "<p>Il vostro amore per Tor sar\u00e0 raddoppiato!</p><p><span class="\&quot;h-card\&quot;" translate="\&quot;no\&quot;"><a href="\&quot;https://feddit.it/c/informatica\&quot;" class="\&quot;u-url" rel="\&quot;nofollow" target="\&quot;_blank\&quot;">@<span>informatica</span></a></span> </p><p>Come (quasi) tutti gli anni \u00e8 possibile fare una <a href="\&quot;https://donate.torproject.org/\&quot;" target="\&quot;_blank\&quot;" rel="\&quot;">donazione a Tor</a> che verr\u00e0 raddoppiata da <a href="\&quot;https://powerupprivacy.com/\&quot;" target="\&quot;_blank\&quot;" rel="\&quot;nofollow">alcuni supporter speciali</a>.</p><p>In                                            sostanza se voi donate 25\u20ac alcuni supporter raddoppiare la donazione donando a loro volta altri 25\u20ac e lo faranno fino a un totale 250.000\u20ac!</p><p>Se avevate intenzione dunque di f                                           are una donazione \u00e8 probabilmente questo il periodo migliore. E, in base a quanto donerete, potrete ricevere a casa anche alcuni regali come adesivi, magliette, cappellini o felpe. \ud83d\u                                           dc9c</p><p><a href="\&quot;https://blog.torproject.org/2025-fundraiser-donations-matched/\&quot;" target="\&quot;_blank\&quot;" rel="\&quot;nofollow" translate="\&quot;no\&quot;"><span class="\&quot;invisible\&quot;">https://</span><span class="\&quot;ellipsis\&quot;">blog.torproject.org/2025-fundr</span><span class="\&quot;invisible\&quot;">aiser-donations-matched/</span></a></p>"
        },
        "updated": "2025-10-15T13:05:15Z",
        "attachment": [
            {
                "type": "Document",
                "mediaType": "image/png",
                "url": "https://s3.poliversity.it/media_attachments/files/115/378/301/124/619/993/original/73832f78ae58b0d0.png",
                "name": "Un'immagine con uno sfondo scuro che presenta il testo \"Free the Internet\" in carattere pixelato. Al centro c'\u00e8 un simbolo di una catena spezzata, circondato da un el                                           emento grafico a stella, con colori vivaci viola e verde.",
                "blurhash": "U86bDUof01RjWUa#jcocD%ay-;ofxuoeR%Rl",
                "focalPoint": [
                    0.0,
                    0.0
                ],
                "width": 940,
                "height": 529
            }
        ],
        "tag": [
            {
                "type": "Mention",
                "href": "https://feddit.it/c/informatica",
                "name": "[informatica@feddit.it](https://community.nodebb.org/category/informatica@feddit.it)"
            }
        ],
        "replies": {
            "id": "https://poliversity.it/users/skariko/statuses/115378312894874276/replies",
            "type": "Collection",
            "first": {
                "type": "CollectionPage",
                "next": "https://poliversity.it/users/skariko/statuses/115378312894874276/replies?only_other_accounts=true&amp;page=true",
                "partOf": "https://poliversity.it/users/skariko/statuses/115378312894874276/replies",
                "items": []
            }
        },
        "likes": {
            "id": "https://poliversity.it/users/skariko/statuses/115378312894874276/likes",
            "type": "Collection",
            "totalItems": 0
        },
        "shares": {
            "id": "https://poliversity.it/users/skariko/statuses/115378312894874276/shares",
            "type": "Collection",
            "totalItems": 1
        }
    }
    

    The second problem, which I don't know if it's connected to this or not, is that now topics coming from Mastodon have a strange code in the subject, meaning they contain 'n and everything is inserted into the title.

    Example:
    This post on Mastodon https://poliversity.it/@trapiantodipelo/115377451751168706 appears on Citiverse in this way, with an unreadable title: https://citiverse.it/topic/ca60c417-ab8e-4b64-84f3-e8c9e158ddaf/trovati-i-resti-della-terra-primordiale-n@scienza-hashtag-n-n-risalgono-a-4-5-miliardi-di-anni-fa-riconosciuti-dalla-firma-chimica-nelle-rocce-n

    Remains of primordial Earth found'n@scienza (HASHTAG)'n'n They date back 4.5 billion years, recognised by the chemical signature in the rocks'n
    

    Even in this case, I read it from the server like this:

    curl -s -H "Accept: application/activity+json" https://poliversity.it/@trapiantodipelo/115377451751168706 | python3 -m json.tool
    {
        "@context": [
            "https://www.w3.org/ns/activitystreams",
            {
                "ostatus": "http://ostatus.org#",
                "atomUri": "ostatus:atomUri",
                "inReplyToAtomUri": "ostatus:inReplyToAtomUri",
                "conversation": "ostatus:conversation",
                "sensitive": "as:sensitive",
                "toot": "http://joinmastodon.org/ns#",
                "votersCount": "toot:votersCount",
                "litepub": "http://litepub.social/ns#",
                "directMessage": "litepub:directMessage"
            }
        ],
        "id": "https://poliversity.it/users/trapiantodipelo/statuses/115377451751168706",
        "type": "Note",
        "summary": null,
        "inReplyTo": null,
        "published": "2025-10-15T09:23:18Z",
        "url": "https://poliversity.it/@trapiantodipelo/115377451751168706",
        "attributedTo": "https://poliversity.it/users/trapiantodipelo",
        "to": [
            "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
            "https://poliversity.it/users/trapiantodipelo/followers",
            "https://feddit.it/c/scienza",
            "https://feddit.it/c/scienza/followers"
        ],
        "sensitive": false,
        "atomUri": "https://poliversity.it/users/trapiantodipelo/statuses/115377451751168706",
        "inReplyToAtomUri": null,
        "conversation": "tag:poliversity.it,2025-10-15:objectId=9239465:objectType=Conversation",
        "content": "<p><a href="\&quot;https://www.ansa.it/canale_scienza/notizie/terra_poli/2025/10/15/trovati-i-resti-della-terra-primordiale_81669da1-314e-4e50-856b-8aa51bd85138.html\&quot;" target="\&quot;_blank\" rel="\&quot;nofollow">Trovati i resti della Terra primordiale</a></p><p><span class="\&quot;h-card\&quot;" translate="\&quot;no\&quot;"><a href="\&quot;https://feddit.it/c/scienza\&quot;" class="\&quot;u-url" rel="\&quot;nofoll" target="\&quot;_blank\&quot;">@<span>scienza</span></a></span> (HASHTAG)</p><blockquote><p>Risalgono a 4,5 miliardi di anni fa,  riconosciuti dalla firma chimica nelle rocce</p></blockquote>",
        "contentMap": {
            "it": "<p><a href="\&quot;https://www.ansa.it/canale_scienza/notizie/terra_poli/2025/10/15/trovati-i-resti-della-terra-primordiale_81669da1-314e-4e50-856b-8aa51bd85138.html\&quot;" target="\&quot;_blank\&quot;" rel="\&quot;nofollow">Trovati i resti della Terra primordiale</a></p><p><span class="\&quot;h-card\&quot;" translate="\&quot;no\&quot;"><a href="\&quot;https://feddit.it/c/scienza\&quot;" class="\&quot;u-url" rel="\&quot;nofollo" target="\&quot;_blank\&quot;">@<span>scienza</span></a></span> (HASHTAG)</p><blockquote><p>Risalgono a 4,5 miliardi di anni fa,  riconosciuti dalla firma chimica nelle rocce</p></blockquote>"
        },
        "attachment": [],
        "tag": [
            {
                "type": "Mention",
                "href": "https://feddit.it/c/scienza",
                "name": "[scienza@feddit.it](https://community.nodebb.org/category/scienza@feddit.it)"
            }
        ],
        "replies": {
            "id": "https://poliversity.it/users/trapiantodipelo/statuses/115377451751168706/replies",
            "type": "Collection",
            "first": {
                "type": "CollectionPage",
                "next": "https://poliversity.it/users/trapiantodipelo/statuses/115377451751168706/replies?only_other_accounts=true&amp;page=true",
                "partOf": "https://poliversity.it/users/trapiantodipelo/statuses/115377451751168706/replies",
                "items": []
            }
        },
        "likes": {
            "id": "https://poliversity.it/users/trapiantodipelo/statuses/115377451751168706/likes",
            "type": "Collection",
            "totalItems": 0
        },
        "shares": {
            "id": "https://poliversity.it/users/trapiantodipelo/statuses/115377451751168706/shares",
            "type": "Collection",
            "totalItems": 1
        }
    }
    

    Does this only happen to me or is it a common problem? How could it be solved?

  • I'm adding more logs that I found and that I think might somehow help understand something, at least regarding the fact that some posts are not visible.

    However, I haven't found anything on the incorrect parsing.

    grep -i "unable to acquire lock" logs/output.log
    2025-10-04T15:54:54.726Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/box464/statuses/115316705107843700
    2025-10-04T18:23:51.471Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/fedizen/statuses/115317291110991552
    2025-10-05T07:53:54.654Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://forum.linux.it/ap/object/17eeb3c3ed48b3f41b080a308936a84d
    2025-10-05T19:57:39.806Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/7cb32204c92d957adc823bc8a964730d
    2025-10-06T07:46:18.050Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/2a2090ece9e000f3cf0855736b0bfbf4
    2025-10-06T09:44:32.005Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliversity.it/users/trapiantodipelo/statuses/115326574246730725
    2025-10-06T09:44:32.072Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliversity.it/users/trapiantodipelo/statuses/115326574246730725
    2025-10-06T11:48:58.814Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://forum.linux.it/ap/object/4b0aea93be6a37f2db073ed415c04965
    2025-10-06T12:30:23.040Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/grishka/statuses/115327226016372765
    2025-10-07T02:00:49.238Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/box464/statuses/115330412507936865
    2025-10-07T11:31:59.242Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/5ec982142e3a056d8bb127cfcf36281d
    2025-10-07T11:38:53.251Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/bb1a62d713fe492dc10f73ac733d55ca
    2025-10-07T13:36:14.299Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://metalhead.club/users/mariusor/statuses/115333146819416742
    2025-10-07T15:46:37.984Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/pfefferle/statuses/115333659892854776
    2025-10-07T17:27:52.869Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.uno/users/informapirata/statuses/115334058027689854
    2025-10-07T17:27:53.022Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.uno/users/informapirata/statuses/115334058027689854
    2025-10-07T20:14:02.870Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://hachyderm.io/users/thisismissem/statuses/115334711305165245
    2025-10-08T02:08:56.227Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/dansup/statuses/115336107029797426
    2025-10-08T05:40:56.699Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/box464/statuses/115336940507096871
    2025-10-08T06:37:26.225Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://forum.linux.it/ap/object/17c7bb1ae58a08c8cfe935379303b169
    2025-10-08T06:57:21.911Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/73092bfb1d51be7b740952b1e00aa3d3
    2025-10-08T09:05:07.203Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/4f86c5d50ff2fc78808e38238b3404fa
    2025-10-08T11:08:47.106Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/dansup/statuses/115338228698820855
    2025-10-08T15:42:48.823Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://gultsch.social/users/daniel/statuses/115339306932607421
    2025-10-08T18:26:06.676Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://pan.rent/users/tommi/statuses/115339948843511904
    2025-10-08T18:42:39.442Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/dc665fa6c73ce9d2b0da5369cb61a3d4
    2025-10-09T18:58:44.679Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.uno/users/informapirata/statuses/115345740139209995
    2025-10-09T18:58:44.742Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.uno/users/informapirata/statuses/115345740139209995
    2025-10-10T06:55:28.486Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://www.lealternative.net/?p=67467
    2025-10-11T08:16:52.182Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliversity.it/users/cubilotto/statuses/115354540980960888
    2025-10-11T11:36:15.955Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://fe.disroot.org/objects/0abb79c4-62c7-4d4a-9795-a20b993d7a88
    2025-10-13T04:55:10.169Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliverso.org/objects/0477a01e-6268-ec86-1b29-4b2333302696
    2025-10-13T04:55:10.222Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliverso.org/objects/0477a01e-6268-ec86-1b29-4b2333302696
    2025-10-13T16:23:32.432Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliverso.org/objects/0477a01e-1668-ed27-737e-279659830410
    2025-10-13T16:23:32.493Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliverso.org/objects/0477a01e-1668-ed27-737e-279659830410
    2025-10-14T05:36:53.830Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.social/users/dansup/statuses/115370898659404174
    2025-10-14T15:16:26.987Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/e86ee553692823714f4d2f5f52f40def
    2025-10-14T22:23:30.810Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://discuti.gatti.ninja/ap/object/1f1e21e0895df2c49c0c43aa9e8a49a7
    2025-10-15T12:22:44.573Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.uno/users/informapirata/statuses/115378157032223224
    2025-10-15T12:22:44.638Z [4567/10208] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://mastodon.uno/users/informapirata/statuses/115378157032223224
    2025-10-15T18:19:09.355Z [4567/102584] - warn: [activitypub/notes.assert] Unable to acquire lock, skipping processing of https://poliversity.it/users/skariko/statuses/115378218263064333
    
  • I'm adding another thought regarding title parsing.

    It seems to only play this "trick" with the modified version of Mastodon called Glitch (which is in use on Poliversity) and Friendica, and not on classic Mastodon.

    However, it didn't do this in previous versions and titles were displayed correctly.

  • ska can you update to the latest development commit and try again?

  • julian hello, yes I just tried the latest update and it seems to work, thanks. I'm mainly referring to the 'n' code within the titles, it seems to no longer appear.

    Regarding the posts that don't appear: I had enabled the Askimet plugin and maybe that could have something to do with it. Now I've disabled it and I'll see if other posts don't appear in the future,
    thanks!

  • julian anyway, I still believe it's not entirely resolved because, for example, some posts, like this one:

    https://poliversity.it/@memento/115384126299404042

    Display very poorly on NodeBB, mixing links, title, and tags all together:

    https://citiverse.it/topic/27568d7f-c702-49a0-b608-705965a6bf66/alzheimer-una-terapia-sperimentale-mostra-risultati-rivoluzionari-nei-topihttps-leganerd.com-2025-10-16-alzheimer-una-terapia-sperimentale-mostra-risultati-rivoluzionari-nei-topi-@scienza

    On other posts, however, the 'n' problem seems to have been resolved.

  • ska for that last one, it is because there is no sentence to parse out.

    For some posts they are not structured in a way that makes it easy to generate a title.

    I will try to improve things over time.


Gli ultimi otto messaggi ricevuti dalla Federazione
  • Konrad-Moskal yes, we're open to those updates to the OpenAPI spec.

    If you use LLMs to write your commits we kindly ask you utilise the Assisted-By line in your commit messages.

    read more

  • julian I was able to make a request to write api: POST to create a user, using a master token :grin:

    There are w few issues though, when using a token _uid, must be specified, shame it's not in the OA spec. Error handling is also tricky, since OA spec does not have all responses types, like 400 (https://docs.nodebb.org/api/write/#tag/users/paths/~1users~1/post).

    I made good progress though so I am happy, it's a side project :) Thank you for your help. Will you guys look into improving these types or are open for contributions?

    EDIT: actually _uid is not an issue, I created myself a token for admin user and it does what I want without needing to pass _uid

    read more

  • Konrad-Moskal okay, best of luck getting the schema to load :)

    read more

  • I am pointing to the input correcty. My LLM wanted me to extract TopicObjectSlim into its own file, it didn't help, I tried to inline TopicObjectSlim and that worked, but there was another error of the same kind just with a different object.

    I was able to fix it, it seems at least, I'll need to test it. Adding a flag to skip validation allowed it to compete sucessfully: openapi-generator-cli generate -i src/specs/read.yaml -g typescript-fetch -o src/sdks/read --skip-validate-spec

    read more

  • I asked ChatGPT for thoughts (because I literally have no idea what to say), and it theorized that openapi-generator-cli was pointed to the file topic_id.yaml directly.

    That would indeed cause issues because the file topic_id.yaml isn't meant to be loaded in isolation.

    You need to point your tool at either read.yaml or write.yaml, which are the OpenAPI schema entry points for the two APIs NodeBB exposes.

    read more

  • julian full error included, I am trying to fix it but no luck so far, I already tried two code gen tools, none worked, have you got it working with any tools maybe?

    [main] INFO o.o.c.l.PythonFastAPIServerCodegen - Skipping sorting of path operations, order matters, let the developer decide via their specification file. [main] WARN io.swagger.v3.parser.OpenAPIV3Parser - Exception while resolving: java.lang.RuntimeException: Could not find components/schemas/TopicObjectSlim in contents of ./read/topic/topic_id.yaml at io.swagger.v3.parser.ResolverCache.loadRef(ResolverCache.java:203) at io.swagger.v3.parser.processors.ExternalRefProcessor.processRefToExternalSchema(ExternalRefProcessor.java:95) at io.swagger.v3.parser.processors.ExternalRefProcessor.processRefSchema(ExternalRefProcessor.java:1047) at io.swagger.v3.parser.processors.ExternalRefProcessor.processSchema(ExternalRefProcessor.java:238) at io.swagger.v3.parser.processors.ExternalRefProcessor.processProperties(ExternalRefProcessor.java:283) at io.swagger.v3.parser.processors.ExternalRefProcessor.processSchema(ExternalRefProcessor.java:264) at io.swagger.v3.parser.processors.ExternalRefProcessor.processRefSchemaObject(ExternalRefProcessor.java:1009) at io.swagger.v3.parser.processors.ExternalRefProcessor.processPathItem(ExternalRefProcessor.java:350) at io.swagger.v3.parser.processors.ExternalRefProcessor.processRefToExternalPathItem(ExternalRefProcessor.java:325) at io.swagger.v3.parser.processors.PathsProcessor.processReferencePath(PathsProcessor.java:346) at io.swagger.v3.parser.processors.PathsProcessor.processPaths(PathsProcessor.java:68) at io.swagger.v3.parser.OpenAPIResolver.resolve(OpenAPIResolver.java:72) at io.swagger.v3.parser.OpenAPIResolver.resolve(OpenAPIResolver.java:59) at io.swagger.v3.parser.OpenAPIV3Parser.resolve(OpenAPIV3Parser.java:240) at io.swagger.v3.parser.OpenAPIV3Parser.readContents(OpenAPIV3Parser.java:183) at io.swagger.v3.parser.OpenAPIV3Parser.readLocation(OpenAPIV3Parser.java:97) at io.swagger.parser.OpenAPIParser.readLocation(OpenAPIParser.java:16) at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:687) at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:745) at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527) at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32) at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66) [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] WARN o.o.codegen.utils.ModelUtils - Failed to get the schema name: ./components/schemas/UserObject.yaml#/UserObjectSlim [main] WARN o.o.codegen.utils.ModelUtils - Failed to get the schema name: ./components/schemas/UserObject.yaml#/UserObjectSlim [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. [main] ERROR o.o.codegen.utils.ModelUtils - Undefined array inner type for `null`. Default to String. Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI). | Error count: 1, Warning count: 0 Errors: -Could not find components/schemas/TopicObjectSlim in contents of ./read/topic/topic_id.yaml at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:718) at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:745) at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527) at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32) at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)  ELIFECYCLE  Command failed with exit code 1.

    You may ignore the error java.lang.RuntimeException: Could not find components/schemas/TopicObjectSlim in contents of ./read/topic/topic_id.yaml, I think I pasted the wrong thing

    read more

  • Hi Konrad-Moskal, this is the docs entry for that route: https://docs.nodebb.org/api/read/#tag/topics/paths/~1api~1topic~1{topic_id}~1{slug}~1{post_index}/get

    It seems to resolve ok here.

    In that file (topic_id.yaml) there is - $ref: ../../components/schemas/TopicObject.yaml#/TopicObjectSlim which seems to be where your parser is tripping up.

    I am not certain what the issue is, because from that working directory, that relative path does resolve to the file in question.

    Actually, I am not sure why it is looking for components/schemas/TopicObjectSlim, because the path is components/schemas/TopicObject.yaml#/TopicObjectSlim

    read more

  • I am trying to codegen from the openapi spec, using openapi-generator-cli and @hey-api/openapi-ts, they both fail, one with:
    java.lang.RuntimeException: Could not find components/schemas/TopicObjectSlim in contents of ./read/topic/topic_id.yaml
    the other one with circular dependency

    It would seem somethings wrong with the spec, I download the full spec straight from here https://github.com/NodeBB/NodeBB/tree/master/public/openapi julian

    read more
Post suggeriti