FG

All Issues

24,993 verified issues

๐Ÿ—„๏ธ Databases
Freshover 10 years ago

Sentinel connection error not emitting

Hi! I'm unable to get an error when ioredis can not connect to sentinel. Code: [code block] Output: [code block] The output is only ioredis debug, no consoles log, the error event was never emitted, is these a bug or am i doing something wrong? Thanks, awesome work!

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKs
Freshover 7 years ago

Release v14.0.0

Let's coordinate on releasing this final version, @IvanGoncharov and @mjmahone. I believe #1382 is the final blocker based on previous discussions I've had with you all about what we'd like to include. If there's anything else we should have blocking this release let me know. Next steps are to write up the full release notes with special mentions of breaking changes, then finally push the version bump and commit tag.

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿค– AI & LLMsAnthropic
Freshover 2 years ago

ImportError: cannot import name 'Anthropic' from 'anthropic'

Trying to run the basic code for Anthropic and getting this error: AttributeError: module 'anthropic' has no attribute 'Anthropic' Using anthropic == 0.3.6 Code in my notebook: from anthropic import Anthropic, HUMAN_PROMPT, AI_PROMPT anthropic = Anthropic( defaults to os.environ.get("ANTHROPIC_API_KEY") api_key='replaced with my actual api key', ) completion = anthropic.completions.create( model="claude-2", max_tokens_to_sample=300, prompt=f"{HUMAN_PROMPT} how does a court case get to the Supreme Court? {AI_PROMPT}", ) print(completion.completion)

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
โ˜๏ธ Cloud & DevOps
Freshover 10 years ago

Add support for vmware

Is there any interest in providing support for vmware?

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ› ๏ธ Developer ToolsMicrosoft
Freshabout 10 years ago

Proxy support for extension gallery

Whenever I try to install any extension, using _ext install_, I get a connect ETIMEDOUT 191.238.172.191:443 error. Trying to navigate to https://191.238.172.191 in the browser produces a warning regarding the certificate being valid only for *.market.visualstudio.com, but I'm allowed to proceed. Shouldn't VSCode try to connect to the name instead of the IP? I'm behind a proxy, VSCode updates just fine behind it, and also lists the available extensions. The firewall here logs the invalid certificate but allows the connection to proceed. Doesn't look like a problem in my end... OS: Windows 7 VSCode: 0.10.1

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿค– AI & LLMsOpenAI
Fresh11 months ago

Model seems to ignore `.optional()` fields, and instead uses fasly values such as 0, empty strings etc'

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 Model seems to ignore `.optional()` fields, and instead uses nullary values, empty strings etc' I'm not sure if it's a library issue or chatgpt model issue. To Reproduce I suspect this is a KI or an upstream problem, but let me know if not I'll send a repro Code snippets _No response_ OS ubuntu Node version 22.7.0 Library version 4.57.0

Confidence87%
87%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐ŸŒ Web & Full-Stack
Freshover 1 year ago

feat: Authentication by Websocket

Describe the feature you'd like to request We know that websocket do not use http headers, but during handshake http request can be used. Page 14 RFC 6455 https://www.rfc-editor.org/rfc/rfc6455#page-14 Current implementation sending these headers [code block] But I would like to add my custom headers here, eg Authorization. Connected reddit topic of other user: https://www.reddit.com/r/node/comments/117fgb5/trpc_correct_way_to_authorize_websocket/ Describe the solution you'd like to see This problem was solved in apollo client by [code block] in issue https://github.com/apollographql/apollo-client/issues/3967 or even better [code block] Probably when this function will return new headers (eg new bearer token will be added) we probably need restart all operations. [code block] so it seems to be complicated. Describe alternate solutions Alternatively we can think about `onOpen` function in `createWSClient` or if it is called after handshake, then maybe add function `beforeOpen` and give end user control over connecting and reconnecting when headers will be changed. Additional information I can try to contribute with this but need to know if this feature will be accepted and how to design it. ๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing - [X] ๐Ÿ™‹โ€โ™‚๏ธ Yes, I'd be down to file a PR implementing this feature! I wrote article about approaches to this problem, so you can read details and discuss here which one should be preferred as official, and maybe instead of this feature we will ad

Confidence87%
87%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ”Œ APIs & SDKsStripe
Fresh2 months ago

File upload via files.create API always timing out with NodeJS

Describe the bug Hey folks, after upgrading `stripe-node` to `20.1.0` (from `14.5.0`), our file uploads stopped working, always returning a timeout error: [code block] I've tested a few different versions of the client, and the latest version where the file upload worked as expected is `18.5.0`, and the issue starts happening on `19.0.0`. Also, the issue only happens when using NodeJS. If I run the same snippet with `stripe-node` version `20.1.0` with Bun, it works as expected. The request does not appear on the logs on Stripe's dashboard. To Reproduce 1. Call the `files.create` API using `stripe-node` version `20.1.0` with NodeJS 20, 22 or 24. Expected behavior The file is uploaded successfully, as in version `18.5.0`: [code block] Code snippets [code block] OS Fedora 42 on kernel 6.17.7 Node version Tested with 20.19.6, 22.21.1 and 24.12.0 Library version stripe-node between 19.0.0 and 20.1.0 API version 2023-10-16, but other versions also gave the same error Additional context Initializing the client with `{ httpClient: Stripe.createFetchHttpClient() }` changes the error to: [code block] I was able to make it work by importing `node-fetch` and using it as the HTTP client, i.e.: [code block]

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ—„๏ธ DatabasesMongoDB
Freshalmost 8 years ago

model.save response too slow

Probably bug with mongoose 5.0.12 and 5.0.13 mongoose model.save after start project first response 1s, with mongoose 5.0.4 it start fine (this problem only with 1st save, get.request returns fast, after 1st save it works fine) first run with 5.0.4v 55.944 ms first run with 5.0.13v 1076.606 ms first run with 5.0.12v 1076.509 ms node 8.7.0 mongoDB 3.6.1

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿค– AI & LLMsOpenAI
Freshover 2 years ago

"warning":"This model version is deprecated. Migrate before January 4, 2024

Describe the bug Im using v3.3.0 attempting to make a call with text-davinci-003 [code block] I get this sort of return: {"warning":"This model version is deprecated. Migrate before January 4, 2024 to avoid disruption of service. Learn more https://platform.openai.com/docs/deprecations"...... I go to my account and try then use - gpt-3.5-turbo-instruct for the model, and promptly get a response of Model does not exist. The information provided in the blog posts, says this is a drop in replacement. I'm kinda stuck, and I don't believe an API call should return a warning as the object and a 200 response. To Reproduce 1. Create a Node application 2. Add the code to call the API 3. Make the call and watch the result Code snippets [code block] ``` OS Windows 11 Node version Node 18.12.1 Library version v3.3.0

Confidence87%
87%
Candidate Fix
1 fixโœ“ 2 verified
โ˜๏ธ Cloud & DevOpsAmazon
Freshover 11 years ago

S3 sync: s3 -> local redownloads unchanged files

We store a pile of files in S3 and it's handy to have a local copy of our S3 buckets for development and backup. Upon first glance `aws s3 sync` looks like it'll work. I ran sync on our entire bucket and it completed successfully; it downloaded a whole bucket to local disk. The second time I ran the command it was redownloaded some files that haven't changed (on S3 or locally) alongside the new ones. [code block] These files were just downloaded with the first `sync`. The local modified time & size match S3's values. While I never rule out the possibility of user error I don't see an obvious cause. The first S3->Local sync completed normally, I run it again and it redownloads _some_ files every time that haven't changed. Not all, just some. And it's the same files redownloaded every time. My cli version is `aws-cli/1.2.13 Python/2.7.6 Darwin/10.8.0` This may or may not be related to issue #599, but I won't personally make that call.

Confidence87%
87%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿ—„๏ธ Databases
Freshalmost 5 years ago

Sentinel failover not detected when connection hangs

I have stumbled onto the same issue as these: https://github.com/luin/ioredis/issues/556 https://github.com/luin/ioredis/issues/1021 * https://github.com/luin/ioredis/issues/1059 After some investigating, I concluded that ioredis currently relies on Redis closing the connection as described here However, when the failover is initiated with the Redis `DEBUG SLEEP` command or `docker pause`, the connection simply hangs, but doesn't terminate. This could be solved by subscribing to sentinel messages on the `+switch-master` channel. Described in the Sentinel docs as "the message most external users are interested in" I've created a reproducible example: https://github.com/mjomble/ioredis-sentinel-issue This example listens to the message outside ioredis. Once received, it uses internal/undocumented fields to call `client.connector.stream.destroy()` because `redis.disconnect(true)` (which calls `stream.end()`) leaves the connection open in this scenario. Ideally, this could all happen inside ioredis. I could probably submit a PR if needed.

Confidence87%
87%
Candidate Fix
1 fixโœ“ 2 verified
๐Ÿค– AI & LLMs
Freshabout 1 year ago

consider supporting an `enable_approxscan` option

problem When monitoring the recall of a vector query, you sometimes want to disable all approximate indexes to get the ground_truth and monitor recall. Yet `enable_indexscan` isn't ideal since it turns off all indexes, causing problems in complex queries that make use of multiple tables/indexes. solution Introduce a new guc convention, that if `enable_approxscan` is set and marked as off, turns off approximate indexes (by setting the cost really high as other enable_* gucs do). This guc wouldn't be defined in pgvector, but pgvector would check if it's set (just by name) and act accordingly. I propose `enable_approxscan` as the name but open to other suggestions. I think this convention would ideally, in time apply to all approximate Postgres indexes, certainly we'd also implement it in pgvectorscale's diskann. question Curious about thoughts on whether or not this is a good idea.

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿค– AI & LLMs
Freshalmost 2 years ago

Trouble on installing with mac (M1)

I have followed the methods for installation of pgvector. I changed the path for Postgres accordingly but I received the error message: 2024-04-10 10:08:58.179 GMT [53653] FATAL: --pgxs requires a value cp sql/vector.sql sql/vector--0.6.2.sql Is there anything that I need to install to resolve the error ?

Confidence87%
87%
Candidate Fix
1 fixโœ“ 2 verified
๐ŸŒ Web & Full-StackMicrosoft
Freshabout 3 years ago

[ServerErrors][TypeScript] 5.0.0-dev.20230226

The following errors were reported by 5.0.0-dev.20230226 Pipeline that generated this bug Logs for the pipeline run File that generated the pipeline This run considered 200 popular TS repos from GH (after skipping the top 0). <details> <summary>Successfully analyzed 188 of 200 visited repos</summary> | Outcome | Count | |---------|-------| | Detected interesting changes | 120 | | Detected no interesting changes | 68 | | Git clone failed | 1 | | Unknown failure | 11 | </details> Investigation Status | Repo | Errors | Outcome | |------|--------|---------| |airbnb/react-sketchapp|1| | |airbnb/visx|1| | |akveo/ngx-admin|1| | |alan2207/bulletproof-react|1| | |alibaba/ice|1| | |angular/angular-cli|1| | |angular/angular|1| | |angular/components|1| | |ant-design/ant-design|1| | |apache/echarts|1| | |apollographql/apollo-client|1| | |apollographql/apollo-server|1| | |AykutSarac/jsoncrack.com|1| | |babel/babel|1| | |backstage/backstage|1| | |baidu/amis|1| | |balena-io/etcher|1| | |blitz-js/blitz|1| | |BrainJS/brain.js|1| | |Budibase/budibase|1| | |BuilderIO/qwik|1| | |chakra-ui/chakra-ui|1| | |chartist-js/chartist|1| | |cheeriojs/cheerio|1| | |codex-team/editor.js|1| | |colinhacks/zod|1| | |compiler-explorer/compiler-explorer|1| | |conventional-changelog/commitlint|1| | |conwnet/github1s|1| | |darkreader/darkreader|1| | |date-fns/date-fns|1| | |desktop/desktop|1| | |electron-userland/electron-builder|1| | |excalidraw/excalidraw|1| | |facebook/docusaurus|1| | |felixrieseberg/window

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ“ก Networking
Freshover 1 year ago

Cannot find name 'TransformStream' after updating to v5.2.0

Since I updated `socket.io` from the `v4.7.1` to the `v4.7.2` (and so `engine.io-parser` from the `v5.1.0` to the `v5.2.1`), I'm getting the following errors while building my projects: [code block] Funnily, I'm only getting this error when compiling using `tsc` but not when compiling using `esbuild`. `npx tsc` -> error `npx esbuild src/index.ts --platform=node` -> ok Here is my `tsconfig.json`: [code block] Reading nodejs's documentation, when using `TransformStream`, it looks like they are importing it with [code block] which is not the case for `engine.io-parser`, so maybe that's the problem.

Confidence87%
87%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿค– AI & LLMsAnthropic
Freshover 2 years ago

Memory leak while using anthropic python sdk 0.3.10

We have a server implemented with FastAPI to cal Anthropic through Python, but when run the following experiments, the memory kept increasing and not released after stop sending request to the server. - a client sending http requests continuously to the server - concurrency 20 - running duration 2mins Sample server code logic [code block] When I replaced the Anthropic python sdk with httpx request directly, the memory kept low and stable during the same experiment. Same issue when using 0.3.11 as well. Would be great if you can help to take a look.

Confidence87%
87%
โœ“ Verified Fix Available
1 fixโœ“ 3 verified
๐Ÿ—„๏ธ DatabasesMongoDB
Freshover 10 years ago

Cast to number failed for value "undefined"

Hi, with the latest version of mongoose, I have a mysterious problem. If I want to save document without specific typed field because it's not required, mongoose return this error in my face : [code block] This is my model schema. It works fine in 3.8.24 : [code block]

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿค– AI & LLMsOpenAI
Freshover 2 years ago

openai@4.12 do not work on deno runtime?

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 I try to import openai on my netlify edge function, it works well days ago, but today it raises: [code block] Note that I found `/denonext/resources.js` missing from esm.sh. I don't know if this is related. To Reproduce new a netlify edge function with just [code block] and deploys it Code snippets _No response_ OS Windows Node version deno Library version openai v4.12

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
๐Ÿ”Œ APIs & SDKsTwilio
Freshover 3 years ago

Can't compile typescript without adding @types/express

Issue Summary I'm not able to build a typescript project with this package just by adding the `twilio` and `@types/twilio` packages, when I build the solution. I am not using anything express related in terms of imports from twilio and my project is express free as well. If I install `@types/express` as a dev dependency then it will build, but I don't think that's how it's supposed to work. Steps to Reproduce 1. Create node typescript app 2. Install `twilio` as dependency and `@types/twilio` as dev dependency 3. Import twilio in a ts file, use the method for sending a basic message 4. Run `npm run build` Exception/Log [code block] Technical details: twilio-node version: 3.19.3 node version: 14.16.0

Confidence87%
87%
Candidate Fix
1 fixโœ“ 1 verified
โ† PrevPage 24 of 1250Next โ†’