Skip to content

[Bug]: Unable to hot reload runtime section since file is being used by another process #2064

@Aniruddh25

Description

@Aniruddh25

What happened?

With dab 0.10.23, I tested hot reload of the runtime config section.

I changed the runtime.rest.path value from "/api" to "/rest".

Was expecting the route changed to a different prefix. Instead, I saw this message in the logs and the new path route couldn't be found on querying.

image

Version

0.10.23

What database are you using?

Azure SQL

What hosting model are you using?

Local (including CLI)

Which API approach are you accessing DAB through?

REST

Relevant log output

Loading config file from dab-config.json.
Unable to hot reload configuration file due to The process cannot access the file 'dab-config.json' because it is being used by another process.
Loading config file from dab-config.json.
Unable to hot reload configuration file due to The process cannot access the file 'dab-config.json' because it is being used by another process.
Loading config file from dab-config.json.

....

 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
      Route matched with {action = "Find", controller = "Rest"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Find(System.String) on controller Azure.DataApiBuilder.Service.Controllers.RestController (Azure.DataApiBuilder.Service).
fail: Azure.DataApiBuilder.Service.Controllers.RestController[0]
      b16e74da-4022-4880-a2c6-50e1cce3c8c6 Error handling REST request.
      Azure.DataApiBuilder.Service.Exceptions.DataApiBuilderException: Invalid Path for route: rest/Book.
         at Azure.DataApiBuilder.Core.Services.RestService.GetRouteAfterPathBase(String route)
         at Azure.DataApiBuilder.Service.Controllers.RestController.HandleOperation(String route, EntityActionOperation operationType)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions