Why every time i try to run ML model in label studio i get a json file saying {"model_dir":"/data/models","status":"UP","v2":"false'"}"} - label-studio

{"model_dir":"/data/models","status":"UP","v2":"false"} is shown on the web page instead of running the backend
run backend in label-studio

Related

GoLang SPA returning 500 Internal Server Error on Refresh only

I have a golang API app that is currently serving double-duty as a Single Page App server with static content using the method shown here: https://hackandsla.sh/posts/2021-11-06-serve-spa-from-go/
Everything is working great in terms of navigation until users try to refresh URIs with encoded JSON in them. For example:
/licenses
will refresh file and draw the page as it would normally have appeared through internal history.push()
/licenses/show/%7B"options":%7B"container":"home","field":"date","order":"desc"%7D,"license":"00001a"%7D
will cause the 500 error.
I did the initial development with IIS as a web server so these Refresh errors never happened in that environment. And when the server is ready to be deployed I plan to use Caddy and reverse proxy the API and am assuming it will handle the Refreshes with the same aplomb as IIS.
But for now I am hoping to run tests against my simple server so I'd like to solve this issue out of curiosity in addition to development expediency.
Bottom line: What cause golang http.ListenAndServe to return 500 errors?
UPDATE:
As I need to be able to test and hand off for others I have converted to a querystring which http.ListenAndServe is happy with:
/licenses/show/%7B"options":%7B"container":"home","field":"date","order":"desc"%7D,"license":"00001a"%7D
causes 500 error
/licenses/show?state=%7B"options":%7B"container":"home","field":"date","order":"desc"%7D,"license":"00001a"%7D
works fine

GraphQL Elixir/Phoenix API: Socket hang up with large json response

New to Elixir/Phoenix and GraphQL. I have created a simple API that retrieves "drawings" from a PostgreSQL database. The table consists of an "id" (uuid) and "drawing_json" (text). In the table is one row with a json string of about 77Kb. My schema and queries are defined using Absinthe. I have 1 query called "all_drawings" which resolves and reaches out to the Repo and pulls in all drawings. When using postman to call this API, the following query works fine:
{
allDrawings
{
id
}
}
However, when I try to return the json field as well the postman request times out and I get a "socket hang up" error.
Looking at the Debug Console in Visual Studio Code, I can see the query gets the data from the db just fine and almost immediately. Something seems to be happening though in returning it to the client that I can't detect. No errors are thrown. Any ideas? Not sure what information will help but happy to provide more.
A colleague helped me find the fix. Not sure why this is (maybe someone can elaborate), but the issue was with trying to run it in Visual Studio Code. Previously, I set up the run task in launch.json and would click the run button to start debugging my application. This would cause the aforementioned crash every time. When I went to the terminal and ran the "mix phx.server" command, everything worked fine. Not sure if the hang up is with Visual Studio Code or the ElixirLS extension when using the IDE to debug. But starting the application through the command line allowed me to use postman to hit the api and retrieve the data just fine. I'm very new to the Elixir/Phoenix world so I'm unable to draw a more intelligent conclusion as to why this happens.

Hygieia Issue: Not able to see data in hygieia build widget for jenkins

I want to use build widget of Hygieia Dashboard for Jenkins, but not able to populate data in it.
Installed Mongo.
Downloaded Hygieia V1.2.0.
Successfully ran mvn clean compile install package.
Created application.properties in corresponding config folders for Hudson Collector.
Run hudson collector with java -jar
Run gulp serve in the UI folder
Everything appears to come up ok
I see data has been created in mongo
I can add a dashboard in the UI .
But, I can not succesffuly add Build widgets for Jenkins via the UI.
this is the widget dashboard and we are using build widget-
this is the widget dashboard and we are using build widget
on click of configure and adding the server and jobname , it is getting logged out. Below is the snippet-
on click of configure and adding the server and jobname , it is getting logged out
Automatically it is coming to login page-
Automatically it is coming to login page
And after logging again to the widget dashboard, we are getting build widget with no data-
build widget with no data
Now, when I checked in db, I am getting all the jenkins jobs in collector_items.
But not able to show it in build widget.
This is a very common issue with all widgets in Hygieia. The only way to get it running is to let the collectors run for some time untill data is populated in the database and then restart the entire process including the UI Server and the Collectors & API service. Still if you cant see the data populated try removing the widgets and adding it again and leave the UI page as it is on the screen for 5-10 minutes, your data will be there.
This usually occurs initially when we are configuring a new collector for the very first time.

LUIS web interface crashed after import JSON file for Batch Testing or Import App

When using LUIS web interface I encountered bugs below:
1. Page freeze after adding intents or entities: Start working after restart a new browser tab or few hours of waiting .
2. Can't publish app after Training: All buttons on 'Publish' page turn gray and can't be pressed.Start working after restart a new browser tab or few hours of waiting.
enter image description here
3. Can't upload file for Batch Testing: Uploading First test file of each app works fine, but uploading second file will cuz page freeze.
4. Entities in Batch Testing result were replaced with tokens: Can't recognized original utterances.
5. Import App with Same JSON file will generate Different app: I send same utterance to two different app which were all made of same JSON file, but got different result.
Thank you for reading my questions.
I sent those questions to Support message box but didn't get any reply so here is my last hope...

Create an EVENT SOURCE using web setup project

I am developing a website using MVC 3,
I have a web setup project for installing it to my localhost.
Now what I want is to create an EVENT SOURCE ( where I will later on log using my website ) using this very setup.
Is this possible?
I have been following this link:
http://msdn.microsoft.com/en-us/library/ms998320.aspx#paght000015%5Feventlogaccess
I earlier tried creating an EVENT SOURCE programmatically, but my web app threw security exceptions, similar to the error the user in this post was getting: System.Security.SecurityException when writing to Event Log
Thanks in advance
Yasser
After a lot of struggle I myslef managed to answer my question
I first had to create a seperate installer class, which had code to install an event source.
Next in my web setup project, under custom action in INSTALL, I simply added the output of the above project which was a single dll.
and thats it!
Now whenever my web setup runs, the installer dll is also activated and run and my event source gets created.
Now that was not too difficult was it ? ;)

Resources