-
Notifications
You must be signed in to change notification settings - Fork 7
Update README.MD #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
collect test statemant error : Failed to execute query. Error: Procedure or function 'get_embedding' expects parameter '@error', which was not supplied.
@@ -120,6 +122,7 @@ The easiest way to deploy the full-stack application is to fork the repository a | |||
Make sure you give the user thay you are using to connect to the database the permission to run the needed stored procedures: | |||
|
|||
```sql | |||
GRANT SELECT ON SCHEMA::[dbo] TO [<your user>] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed as 'web' schema is owned by 'dbo'. What do you see not working if you don't give this permission?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user used for the data source connection does not have SELECT permission on dbo, the following error occurs in Data API Builder.
The website also displays this error.
Are there any other appropriate workarounds?
fail: Azure.DataApiBuilder.Service.Startup[0]
Unable to complete runtime initialization. Refer to exception for error details.
Azure.DataApiBuilder.Service.Exceptions.DataApiBuilderException: Cannot obtain Schema for entity Samples with underlying database object source: dbo.samples due to: The SELECT permission was denied on the object 'samples', database 'aisearchdb', schema 'dbo'.
at Azure.DataApiBuilder.Core.Services.SqlMetadataProvider`3.HandleOrRecordException(Exception e) in /_/src/Core/Services/MetadataProviders/SqlMetadataProvider.cs:line 100
at Azure.DataApiBuilder.Core.Services.SqlMetadataProvider`3.PopulateObjectDefinitionForEntity(String entityName, Entity entity) in /_/src/Core/Services/MetadataProviders/SqlMetadataProvider.cs:line 1116
at Azure.DataApiBuilder.Core.Services.SqlMetadataProvider`3.PopulateObjectDefinitionForEntities() in /_/src/Core/Services/MetadataProviders/SqlMetadataProvider.cs:line 1054
at Azure.DataApiBuilder.Core.Services.SqlMetadataProvider`3.InitializeAsync() in /_/src/Core/Services/MetadataProviders/SqlMetadataProvider.cs:line 289
at Azure.DataApiBuilder.Core.Services.MetadataProviders.MetadataProviderFactory.InitializeAsync() in /_/src/Core/Services/MetadataProviders/MetadataProviderFactory.cs:line 92
at Azure.DataApiBuilder.Service.Startup.PerformOnConfigChangeAsync(IApplicationBuilder app) in /_/src/Service/Startup.cs:line 649
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
fail: Azure.DataApiBuilder.Service.Startup[0]
Could not initialize the engine with the runtime config file: staticwebapp.database.config.json
⠼ Waiting for http://localhost:5173 to be readyfail: Microsoft.Extensions.Hosting.Internal.Host[11]
Hosting failed to start
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken
token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
Unable to launch the Data API builder engine.
Error: Failed to start the engine.
You're right I forgot I exposed the "dbo.samples" table directly in one of the last update. Good catch! |
collect test statemant
error : Failed to execute query. Error: Procedure or function 'get_embedding' expects parameter '@error', which was not supplied.