All Issues
24,993 verified issues
"Cannot find module 'zod'" in production environment
Confirm this is a Node library issue and not an underlying OpenAI API issue - [X] This is an issue with the Node library Describe the bug [code block] `package.json`: [code block] `npm ls zod` logs [code block] To Reproduce I am not sure to be honest. It works fine locally but seems to break somewhere during the deployment. Please let me know what insights could further help you debug this issue. Code snippets _No response_ OS linux/arm64 Node version v18.20.4 Library version v4.60.1
No sendMessage function on the parse cloud module
Some function are not defined when i use this module on parse cloud. sendSMS only send 70 chars so we need sendMessage function.
Missing Error Event (maybe).
ENV: [code block] assumeοΌ key bar (value foo) stored in MasterB , key foo (value bar) stored in MasterC if we stopped MasterA ,and then ioredis.Cluster.get('bar' , function (err,result){ // I'M will never run............ }) how can i do with this situation? any advise??
xhr-multipart not proxied
I'm, trying to use socket.io's xhr-multipart transport but the connection is always closed after the first chunk of data. Looks like there is a problem with transfer encoding chunked.
ioredis / flaky cluster connection sequence
Hey, I've finally managed to upgrade ioredis from 3 to 4 and my tests for the Cluster are behaving very flaky. At time cluster connection is established right away, at times it doesnt connect at all. I think that there is some flaw with the connection logic, but I can't seem to understand what and why happens. Below is the log for the failed test (couldnt connect in 30 seconds): [code block] Same tests, but a successful attempt [code block] Would appreciate the help. Trying myself to debug the cluster module at this point. With ioredis@3 it worked well
Feature Request: Request & Response logging
I'd like to propose adding a way of hooking into request and response events so they can logged. My use-case is for post-mortem of failed requests and general analysis. I find the dashboard's Logs view rather lacking (one has to advance through it page-by-page, it's slow, and search by request ID doesn't seem to be implemented). I could add a separate wrapper around the stripe API functions to do this, but I wanted to gauge if there was any more general interest in this to see if it's worth making a PR.
Method Update using TaskRouter Worker not working.
Issue Summary After creating a TaskRouter Worker capacity token and using it in front-end the update method of Workers doesn't work. With PHP the update method works fine, but with node it doesn't work. I am following a guide here `https://www.twilio.com/docs/taskrouter/js-sdk/workspace/worker` Code Snippet [code block] Exception/Log In back-end it doesn't show any errors only when using it in front-end. Technical details: twilio-node version: 3.43.0 twilio taskrouter cdn version: 1.20 * node version: 12.10.0
εε§εηζΆεζ₯ιοΌζ₯ο½ο½ο½
γ代η γ _this.redis = new _ioredis2.default(6379,RDS_HOST,{password:RDS_PWD,dropBufferSupport:true}); γζ₯ιγ [ioredis] Unhandled error event: ReplyError: ERR AUTH Authentication password incomplete.The password is instanceid:password, example: 05719bf0c3ae11e4:123456. at JavascriptReplyParser.returnError (/opt/node-publish/study/node_modules/ioredis/lib/redis/parser.js:25:25) at JavascriptReplyParser.run (/opt/node-publish/study/node_modules/redis-parser/lib/javascript.js:135:18) at JavascriptReplyParser.execute (/opt/node-publish/study/node_modules/redis-parser/lib/javascript.js:112:10) at Socket.<anonymous> (/opt/node-publish/study/node_modules/ioredis/lib/redis/event_handler.js:107:22) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at Socket.Readable.push (_stream_readable.js:134:10) at TCP.onread (net.js:543:20)
Twillo verify not working
Issue Summary whenever I call this my service I keep on getting `Cannot read property 'get' of undefined` but when I comment it out and return dummy data instead my code works or is it cause am using a trial account Steps to Reproduce 1. Run the script on a nodejs server Code Snippet [code block] Exception/Log [code block] Technical details: twilio-node version: node version:
Delete request for 'price' object
There's currently no delete request for 'price' object with the api. https://stripe.com/docs/api/prices how do you delete prices? setting to active does not work. I am trying to delete 'product' object for connect users, but cannot because price is associated with product.
Guidance for suppressing 301 redirect from target?
Hello. I'm not sure if this is a bug or intended feature, but when the target issues a 301 redirect, the proxy forwards that to the client and the client gets redirected away from the proxy. Is there a way to resolve this? Thanks!
ioredis throws an error that i cannot catch and make p3x-redis-server (p3x-redis-ui) crash
hello! what happening is that if a user configure a redis settings wrong, there is an error, that i cannot catch. the error is like this: [code block] so if the user creates a setting for a non cluster that is actually a cluster this error happening and there is no way to catch, so my app crashes. please let me know how i can disable this automatic `select 1` command, when you are connecting to a clustered redis instance but with wrong connection, without enabling cluster mode.
Broken typescript compilation
I am trying to run [code block] and i get errors: [code block] Twilio version: - "twilio": "3.49.0", Typescript version: - "typescript": "3.7.3", Node version: 12 When i downgrade to "twilio": "3.34.0" the typescript compilation works. Thank you
[ISSUE] HSET should be variadic
Hi, since redis V4 HSET is variadic just like hmset (which has been deprecated) > * HSET is now variadic, and HMSET is considered deprecated (but will be supported for years to come). Please use HSET in new code. > > source: https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES
Ideas
Plan - [ ] Use pairing heap for index scan for performance - `stages` branch - [ ] Use mini-batch k-means for index creation for reduced memory - `minibatch` branch - [ ] Add support for product quantization (in-progress) Ideas - [ ] Use `tuplesort_set_bound` for performance - `bound` branch (not needed w/ pairing heap) - [ ] Add functions to view lists and/or pages like pageinspect (require superuser) On-hold - [ ] Add support for parallel index scans (planner gets cost estimate but doesn't use) - `parallel-index-scan` branch - [ ] Change return type of distance functions from float8 to float4 for performance (maybe, needs benchmarking)
How do I extend pgvector with a custom distance metric?
I am interested in experimenting with a metric that is not included in pgvector on HNSW indices, can you provide a high level overview of what has to be done to support a new distance metric? I may be missing it, but a developer FAQ would be very helpful!
It is posibble to save chat just like chatGPT does?
Describe the feature or improvement you're requesting I like to use the api to ask question, but you know the chatGPT will save the chat conversation, next time you ask a question in the chat, it will answer based on the chat conversations. But this api of the openai library using seems did not save the chat. here is the test: Here is the chatGPT did. Additional context I dont know why it did not save that chat as chatGPT does, because its free account or something else? I can pay for the api that can save chat and then response just like chatGPT did. I need help. Thanks.
Getting response headers for rate limit tracking
Confirm this is a Node library issue and not an underlying OpenAI API issue - [X] This is an issue with the Node library Describe the bug Previously in v3, I am able to track my current usage and token limit since the chat completion response is an axios response, so I can use `response.headers` like so, but now chat completion response is `OpenAI.Chat.Completions.ChatCompletion` which representing `response.data` in v3 only How I can get the same behaviour in v4? Thank you in advance [code block] To Reproduce 1. Call create chat completion function 2. Response does not contains header Code snippets [code block] OS macOS Node version Node v18.16.1 Library version openai v4.16.1
SyntaxError: Unexpected non-whitespace character after JSON at position X
Confirm this is a Node library issue and not an underlying OpenAI API issue - [X] This is an issue with the Node library Describe the bug The following arguments were received at Function Calling. [code block] And trying to parse the above, `SyntaxError: Unexpected non-whitespace character after JSON at position 53` I was told "SyntaxError: Unexpected non-whitespace character after JSON at position 53 For some reason, it often happens that similar queries are repeated 3 times, like this one. What should I do? To Reproduce 1. Use OpenAI API via Node.js 2. Set a Tool [code block] Code snippets _No response_ OS macOS Node version v20.10.0 Library version "openai": "^4.24.0",
getting 400 without error message
Describe the bug i am getting 400 without error message.. To Reproduce 1. fetch the latest update. 2. use the code snippets provided Code snippets [code block] OS macOs Node version v18.12.1 Library version 3.2.1