deislabs / yo-wasm

Yeoman generator for Rust projects intended to build to WASM in OCI registries
Other
63 stars 10 forks source link

Yo wasm publish to hippo fails when application name already exists #61

Open simongdavies opened 3 years ago

simongdavies commented 3 years ago

? What is the name of the WASM module? helloworld ? What type of application is the module? Web service or application using WAGI ? What is the name of the author? Simon Davies ? What programming language will you write the module in? Rust ? Where do you plan to publish the module? Hippo ? What is the URL of your Hippo service? https://localhost:5001 ? What is the URL of your Hippo's Bindle server? http://localhost:8080/v1 ? Would you like to create a new Hippo application for this project? Yes ? What storage ID (bindle name) would you like for your Hippo app? simondavies/helloworld ? What domain name would you like for your Hippo app? helloworld.hippofactory.io ? Enter your Hippo user name (will become app owner) simon ? Enter your Hippo password *** create .gitignore create Cargo.toml create HIPPOFACTS create LICENSE create README.md create .cargo/config.toml create .vscode/extensions.json create .vscode/launch.json create .vscode/settings.json create .vscode/tasks.json create src/main.rs create .github/workflows/build.yml create .github/workflows/release.yml

Created project and GitHub workflows

Setting up your Hippo application... Setup failed! You will need to create the Hippo app manually. The error was: Error: Request failed with status code 500

In Hippo:

Hippo.ApiControllers.ApplicationController[0] Exception Creating Application Name:helloworld StorageId: simondavies/helloworld Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: Applications.Name'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Hippo.Repositories.DbUnitOfWork.SaveChanges() in /workspaces/hippo/Hippo/Repositories/DbUnitOfWork.cs:line 30 at Hippo.ControllerCore.ApplicationControllerCore.CreateApplication(ICreateApplicationParameters request) in /workspaces/hippo/Hippo/ControllerCore/ApplicationControllerCore.cs:line 43 at Hippo.ApiControllers.ApplicationController.New(CreateApplicationRequest request) in /workspaces/hippo/Hippo/ApiControllers/ApplicationController.cs:line 74