Giter VIP home page Giter VIP logo

Comments (16)

FrankSchnicke avatar FrankSchnicke commented on August 23, 2024 1

We added the possibility to configure CORS in the last release of BaSyx. You can configure it in the context.properties as described here.

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

Can you please provide more information about the shells which were registered in the Registry. Do they have their own Rest interface or are they only available "offline"? Which Basyx SDK were you using? Another reason for the occurrence of the issue can be multi-AAS from an AAS-repository. Those are currently not supported.

In addition to that, the stuck spinner is fixed in the newest Pull request. If a shell can't be reached a timeout will occur after a short time.

from basyx-applications.

adankert70 avatar adankert70 commented on August 23, 2024

Thank you for the response. I have 4 example AAS in a Basyx repository. I guess that is my problem then. Will re-test with only one.

from basyx-applications.

adankert70 avatar adankert70 commented on August 23, 2024

Update: Stuck with spinner when there is only one AAS in the Basyx registry as well.
I am running Basyx aas server and registry Docker containers. Registry and servers are backed by MongoDB databases.

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

Can you access said AAS through your browser by entering it's URL? Is the port of the Docker container exposed to be accessed from outside the container?

It would be helpful to provide some more information to exactly reproduce your issue. maybe a step by step description what you did to run into the issue.

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

I think I found the issue and it seems to have to do with AAS repositories in general. I tested this with the dotnet sdk MultiAssetAdministrationShell example and ComplexAssetAdministrationShellScenario. When I try to retrieve the shell(s) I get this response:

image

I will try to fix the code in the examples of the Dotnet SDK and try again if the GUI works.

But I definitely think the GUI is not the issue. In the meantime you could try to use AAS which are directly registered in the registry and not part of an AAS repository.

from basyx-applications.

adankert70 avatar adankert70 commented on August 23, 2024

Thank you for all your guidance. I think I see the problem on my side. Probably some bad config inside my container(s). It uses localhost:4001 addresses for the endoints:
image
If the GUI reads those endpoints and try to access them it will fail of course!
I will try to find the correct parameters and update.

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

You are welcome :) Hopefully you can fix the problem and use the GUI afterwards.

from basyx-applications.

Huang2Ning avatar Huang2Ning commented on August 23, 2024

Hello, I encountered the same problem when showing submodel details in GUI. I can access my AAS server, see this AAS well registered in the registry server and see this AAS appearing in GUI. However, the submodel information doesn't appear in GUI. I would like to ask how did you solve this spinning problem? Thank you in advance.
image

image

image

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

This seems to be an issue related to the configuration of the registry. First of all, is there a reason you access the registry this way 127.0.0.1:8082/registry instead of this way 127.0.0.1:8082? I think that's the proposed way to do it but I will definitely test your implementation to check if that could be the reason for the problem.

Just for your information how the GUI works: It takes the first endpoint address and tries to reach the Asset Administration shell with that URL. You could try to copy that exact address and open it in another tab. If that works the GUI should work to.

Hope that helps :)

from basyx-applications.

Huang2Ning avatar Huang2Ning commented on August 23, 2024

Thank you for your response. I tried with different endpoints but it still not work. Even when I followed exactly the steps shows in this tutorial, I couldn't access to the submodel information by GUI.
https://wiki.eclipse.org/BaSyx_/_Introductory_Examples_/_Java_/_Step_5

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

Alright, I see. Didn't even know this tutorial existed. I am working with the C# SDK normally but Java should also work with no problems. The GUI was tested against every SDK with a rest interface.

Can you show me some screenshots from the Basyx UI's (http://localhost:8082/registry/ui and http://localhost:8081/aasServer/ui)?

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

Please also check the request send from your browser (press F12 then open network tab).

A screenshot like this would also be helpful:

image

from basyx-applications.

Huang2Ning avatar Huang2Ning commented on August 23, 2024

Here's the screenshot that connnect to the registry (work)
image
Screenshot of discovering submodels (not work)
image
I used the registry server and gui server from docker, and the /registry/ui is not working from my side.

from basyx-applications.

Huang2Ning avatar Huang2Ning commented on August 23, 2024

Thank you for your help, I added a CROS plugin in my navigator and it works! :)

image

from basyx-applications.

aaronzi avatar aaronzi commented on August 23, 2024

Oh well. CORS was the Problem... That's annoying. I thought CORS would not affect the localhost. This is getting more restrictive every month I feel.

from basyx-applications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.