我正在使用.NetCore开发RestApi,但是当我尝试使用Postman测试它时,我总是收到404not Found响应。我正在使用MVC模型,我将把我的模型、视图和控制器留在下面。这是我用来调用我的Api http://localhost:5000/api/commands的链接 模型 namespace Commander.Models public class Commandusing Commander.M
我正在测试我的api路线在我的拉拉应用程序,我挣扎为什么拉里测试总是不准确。为了模拟404状态代码,我用不存在的路由创建了一个测试,但是它总是返回200个状态代码。Failed asserting that 404 is identical to 200.
ticketss端点是不存在的,因此我希望使用404状态代码。('services/serviceids', 'Api\ServicesController@serviceid
getPost", };Possibly unhandled rejection: {"data":{"Message":"NoHTTP resource was found that matches the request URI 'http://localhost:57196/api/getPost'.","M
我正在我的Windows (2012年R2)上运行一个dotnet核心api (2.1.0),方法是运行以下命令:dotnet Api.dll,但是我一直收到以下消息。The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found.)时,api在我的mac上正常运行。App]
Microsoft.NETCore.App 2.0.7 [C:\Pro
当我试图在Visual Studio 2022中的powershell控制台中使用dotnet watch run时,我收到了一个错误。It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version'6.0.0-preview.7.21377.19' was not found- The following frameworks were fo
我有一个页面显示错误404。但是只有当用户输入无效的url时,才会打开该页面。如果控制台显示这样的错误:"Failed to load resource: the server responded with a status of 404 (Not Found)“,该如何输出?例如,如果远程用户的id为86,则会显示一个空白页面,并且在控制台中的错误为404。您需要这样做,以便显示带有404错误的my页面,而不是这个空白页面。
谁知道该怎么做呢?有什么例子吗?/not-foun
当我这样做的时候,我总是收到这样的错误。Balanced::NotFound(404)::Not Found:: GET https://api.balancedpayments.com/v1/bank_accounts/BA2PG7jrXzlrEcfpEERh0zD1: not-found: "/v1/bank_accounts/BA2PG7jrXzlrEcfpEERh0zD1" has