question

Upvotes
Accepted
0 0 0 1

Can the Status Text response from from NIP be changed

Is it possible to the same text status for NIPs as we do for IPs? For Non-existent Items we get the following response:

Received CLOSED msg for RIC [invalidItem]. This RIC is closed.
[Wed Jan 22 14:12:40.898] Closed Status Received. Item:<invalidItem> (Text: "F10: Not In Cache")

The Subscribing application will then retry, as there can be many subscribing apps, this can put unnecessary load on the NIP


On an Interactive feed for non-existent items the status is:


Received CLOSED msg for RIC [invalidItem]. This RIC is closed.
[Wed Jan 22 14:21:46.050] Closed Status Received. Item:<invalidItem> (Text: "The record could not be found")


Is it possible to ge the "Record could not be found" text status or is this a limitation with how NIPs work?

elektronrefinitiv-realtimetrepinfrastructurestatusnon-interactive-provider
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

@julian.octave
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

Upvotes
Accepted
25.3k 87 12 25

Hi @julian.octave

One further point, it is generally not advisable for application to act on the contents of the text message - as these could change over time - potentially causing issues with the application.

It is upto the consumer to not retry 'CLOSED' status items unless they are almost certain the situation is transient and the RIC should be available momentarily.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
22.1k 59 14 21

Hi @julian.octave, As you are aware, the items published by NIP are cached by the TREP infrastructure - which handles sending image/updates and status messages to subscribers, vs IP which handles all the subscription requests, caching and generates its own status message.

The NIP text is coming from TREP, which does not have the item in cache. This message can not be changed.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
0 0 0 1

@anton.goldenfarb - Got these Answers, just wanted to loop you in

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.