axios 相关问题

Axios是来自浏览器和服务器的http请求的npm库。


使用Axios Async等待和打字稿将API从API收回数据。阵列长度:1?

该解决方案在我的沙盒应用程序中非常有效,但是一旦我将其放入实际项目中,就会开始失败。 我怀疑这是因为实际项目使用Typescript,到目前为止,Typescript几乎抬起了我尝试添加到此应用程序的所有增强功能。 我的console.log(res.data)正在返回:

回答 0 投票 0

使用Postman和quelize

Server started at http://localhost:5000 Error at Query.run (C:\Users\donal\videos\Web-Developement\videojs\vc-be\server\node_modules\sequelize\lib\dialects\postgres\query.js:50:25) at C:\Users\donal\videos\Web-Developement\videojs\vc-be\server\node_modules\sequelize\lib\sequelize.js:313:28 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async PostgresQueryInterface.insert (C:\Users\donal\videos\Web-Developement\videojs\vc-be\server\node_modules\sequelize\lib\dialects\abstract\query-interface.js:297:21) at async model.save (C:\Users\donal\videos\Web-Developement\videojs\vc-be\server\node_modules\sequelize\lib\model.js:2424:35) at async Function.create (C:\Users\donal\videos\Web-Developement\videojs\vc-be\server\node_modules\sequelize\lib\model.js:1336:12) at async C:\Users\donal\videos\Web-Developement\videojs\vc-be\server\controllers\auth.js:12:18

回答 1 投票 0

我一直在努力将代码库从CRA迁移到Vite。我已经解决了所有代码问题,但是我遇到了我导入的许多软件包的问题。我假设这都是常见问题,也许?令人难以置信的是CRA在生产上进行生产要容易得多。 到目前为止的包装问题:

error during build: node_modules/engine.io-client/build/esm/transport.js (2:9): "Emitter" is not exported by "node_modules/@socket.io/component-emitter/lib/cjs/index.js", imported by "node_modules/engine.io-client/build/esm/transport.js". file: node_modules/engine.io-client/build/esm/transport.js:2:9 1: import { decodePacket } from "engine.io-parser"; 2: import { Emitter } from "@socket.io/component-emitter"; ^ 3: import { installTimerFunctions } from "./util.js"; 4: import { encode } from "./contrib/parseqs.js"; at getRollupError (file:///node_modules/vite/node_modules/rollup/dist/es/shared/parseAst.js:397:41) at error (file:///

回答 1 投票 0


如何通过url reactjs

存储在变量中的日期,现在如何在URL

回答 3 投票 0

截式axios邮政post Call in单元测试的返回值

试图嘲笑我们的身份软件的Axios调用单位测试一个令牌响应。 Axios根本没有被调用,因此我的回报总是不确定的。 我已经尝试更换一个...

回答 1 投票 0

用React和Axios

const technical AnalysisIndicators =({data:initiaLdata,width,ratio})=> { const [data,setData] = usestate(initiaLdata); const [rawdata,setRawdata] = usestate(); const fet ...

回答 1 投票 0


回答 1 投票 0

AbortController停止Axios请求并阻止下一个请求

问题是,当我取消第一个请求并尝试再次获取相同的请求时,我会收到一个取消错误。

回答 1 投票 0


回答 1 投票 0



“ Axioserror:在市场订单请求上,请求失败了400 我正在使用Websocket进行连接到Binance Testnet的交易机器人,以获取股票更新和Axios以下达市场订单。但是,我在尝试p ...

AxiosError: Request failed with status code 400 at settle (C:\Users\mansu\OneDrive\Documentos\Node Projects\Binance\node_modules\axios\dist\node\axios.cjs:2026:12) at IncomingMessage.handleStreamEnd (C:\Users\mansu\OneDrive\Documentos\Node Projects\Binance\node_modules\axios\dist\node\axios.cjs:3142:11) at IncomingMessage.emit (node:events:530:35) at endReadableNT (node:internal/streams/readable:1698:12) at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

回答 0 投票 0

如何使Axios处理大于1GB

我可以做一些事情来使Axios能够处理这种卷数据吗?

回答 0 投票 0

10021 - Uncaught TypeError: Main module name is not present in bundle

回答 1 投票 0

如何使用nodejs

如何显示我的映像哪个图像从数据库中调用,但仅返回大量问号...请参阅此处>>> 如果我使用链接直接调用API,则结果是: {“ succ. ...

回答 2 投票 0


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.