UA-CloudLibrary icon indicating copy to clipboard operation
UA-CloudLibrary copied to clipboard

endpoint infomodel/types/{identifier} returns 404 when called with type identifier

Open koepalex opened this issue 1 month ago • 2 comments

I try to read the type information of a certain type via cloud library. When calling the infomodel/types/{identifier} with nsu=http://opcfoundation.org/UA/Machinery/;i=1002 or http://opcfoundation.org/UA/Machinery/;MachineryItemState_StateMachineType it returns 404 (not found) instead of the type description as JSON.

The API seems currently to only work with model identifiers (like 2797226801 for Machinery Basic Building Blocks) and then list the types.

Image Image

koepalex avatar Nov 25 '25 19:11 koepalex

I've investigating this today. This is "by design". The infomodel/types/{identifier} only lists the types, or returns a 404 when no types are defined in the nodeset (I've made the error returned a little better so it doesn't look like a bug). Do you need the references, per node, as well?

barnstee avatar Nov 27 '25 15:11 barnstee

This is now fixed with https://github.com/OPCFoundation/UA-CloudLibrary/commit/92808eb9b0b1ed3db137ed8864693cd143bc1cb9.

barnstee avatar Nov 28 '25 10:11 barnstee

I used infomodel/types/{identifier} because the original infomodel/type API doesn't exist anymore. And currently don't see, how I can query the type-definition of a concrete type.

Just tested, still don't work.

koepalex avatar Dec 01 '25 10:12 koepalex

What do you expect to see that you don’t see?

iPhone. iTypos. iApologize.


From: Alexander Köpke @.> Sent: Monday, December 1, 2025 11:28:53 AM To: OPCFoundation/UA-CloudLibrary @.> Cc: Comment @.>; Assign @.>; Subscribed @.***> Subject: Re: [OPCFoundation/UA-CloudLibrary] endpoint infomodel/types/{identifier} returns 404 when called with type identifier (Issue #264)

I used infomodel/types/{identifier} because the original infomodel/type API doesn't exist anymore. And currently don't see, how I can query the type-definition of a concrete type.

Just tested, still don't work.

— Reply to this email directly, view it on GitHubhttps://github.com/OPCFoundation/UA-CloudLibrary/issues/264#issuecomment-3595781150 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6HU6UK5AD4F7NYONZNFXT37QJ6LBFHORZGSZ3HMVZKMY3SMVQXIZNMON2WE2TFMN2F65DZOBS2YSLTON2WKQ3PNVWWK3TUUZ2G64DJMNZZFAVEOR4XAZNKOJSXA33TNF2G64TZUV3GC3DVMWUTGNRYGYZDMNBZGSBKI5DZOBS2K2LTON2WLJLWMFWHKZNKGM3DMNBTGY3TMNJSVJQXI5DSNFRHK5DFOOKYFJLWMFWHKZNEORZHKZNENZQW2ZN3ORUHEZLBMRPXAYLSORUWG2LQMFXHIX3BMN2GS5TJOR4YFJLWMFWHKZNEORZHKZNENZQW2ZNOO5QXIY3IL5QWG5DJOZUXI6MCUV3GC3DVMWSWS43TOVS2I3TBNVS2W5DIOJSWCZC7OR4XAZMCUV3GC3DVMWTTKMZWGY3DIOFENZQW2ZNIMFRXI33SL5UWJAVFOZQWY5LFVI4DCMBVGQZDMNBSGCSG4YLNMWUWQYLTL5WGCYTFNQ. You are receiving this email because you commented on the thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

barnstee avatar Dec 01 '25 10:12 barnstee

I expect that I can query the details of a certain type like MachineryItemState_StateMachineType in the namespace http://opcfoundation.org/UA/Machinery/ to get the JSON representation of that type...

Or is cloud library now only for upload/download nodeset files?

koepalex avatar Dec 01 '25 10:12 koepalex

No, this should work. Problem reproed and confirmed and working on a fix...

barnstee avatar Dec 01 '25 11:12 barnstee

It is fixed now (with check-in https://github.com/OPCFoundation/UA-CloudLibrary/commit/6745e7703520412cd904f6606a38d1fc13389728)

barnstee avatar Dec 03 '25 13:12 barnstee

Is it already deployed? I tested via https://uacloudlibrary.opcfoundation.org/swagger/index.html and still only get 404.

koepalex avatar Dec 03 '25 18:12 koepalex

Yes, it is. Check browser cache?

I now get:

@.***

Erich Barnstedt Senior Director & Architect Industrial Standards, Corporate Standards Group, Microsoft Corporation European Microsoft Innovation Center GmbH | Walter-Gropius-Strasse 5, 80807 Munich | Germany | General Managers Keith Dolliver, Benjamin O. Orndorff | Amtsgericht Aachen, HRB 12066

From: Alexander Köpke @.> Sent: Wednesday, 3 December 2025 19:03 To: OPCFoundation/UA-CloudLibrary @.> Cc: Comment @.>; Assign @.>; Subscribed @.***> Subject: Re: [OPCFoundation/UA-CloudLibrary] endpoint infomodel/types/{identifier} returns 404 when called with type identifier (Issue #264)

Is it already deployed? I tested via https://uacloudlibrary.opcfoundation.org/swagger/index.html and still only get 404.

— Reply to this email directly, view it on GitHubhttps://github.com/OPCFoundation/UA-CloudLibrary/issues/264#issuecomment-3608123332 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6HU6SU4CCE4EILBGPOGBL374QV5BFKMF2HI4TJMJ2XIZLTSWBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFU42TGNRWGY2DRJDOMFWWLKDBMN2G64S7NFSIFJLWMFWHKZNKHAYTANJUGI3DIMRQURXGC3LFVFUGC427NRQWEZLMVRZXKYTKMVRXIX3UPFYGLLCJONZXKZKDN5WW2ZLOOSTHI33QNFRXHEUCUR2HS4DFVJZGK4DPONUXI33SPGSXMYLMOVS2SMZWHA3DENRUHE2IFJDUPFYGLJLJONZXKZNFOZQWY5LFVIZTMNRUGM3DONRVGKTXI4TJM5TWK4VGMNZGKYLUMU. You are receiving this email because you commented on the thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

barnstee avatar Dec 03 '25 19:12 barnstee

Oh I see, when I now use the infomodel/types/{identifier} API with the model identifier 2797226801 the JSON that describes the types will be returned instead of just the names but I can't ask for a single type like http://opcfoundation.org/UA/Machinery/;MachineryItemState_StateMachineType

koepalex avatar Dec 04 '25 21:12 koepalex

That's correct. We decided to return all types at once, to align with the behavior of infomdel/instances/{identifier}. A little bit more parsing on the client side required, granted.

barnstee avatar Dec 05 '25 06:12 barnstee