Kafka JS Connection issue

Client network socket disconnected before secure TLS connection was established SASL SCRAM SHA512 authentication failed: Not connected this is an intermittent issue. Major times I don’t encounter this error. Sometimes it occurs, especially like when I execute the producer multiple times simultaneously. I just need thoughts from experienced people here, what might be the solution … Read more

Laravel Http Client return null

I need help in Laravel calling external API. I have two websites: Website A and Website B. Before installing SSL in Website A (http://website A): In Website A controller, I use $response=Http::get(‘http://website B/api/ec23faa399beda’) and it returns value and everything runs well. After installing SSL in Website A (https://website A): using the same code $response=Http::get(‘http://website B/api/ec23faa399beda’) … Read more

WebGLRenderer Context Lost Issue in Chrome and Edge

Encountering a rendering issue on our website in Chrome and Edge, displaying the error: THREE.WebGLRenderer: Context Lost. The website works fine in Firefox. Console of Edge Smooth rendering in all major browsers. Console Of Firefox GitHub Link – github.com/ReyKan-KP/portfolio –  Website Link – portfolio-kanishaka-pranjal.vercel.app –  I want to confirm with you whether this website is … Read more

Classic ASP program display .cer file’s information

I have a classic ASP application which can download the .cer file, now it needs to display the common name and issuer under the download link. So I try<%=theCert.SubjectCN%>, <%=theCert.IssuerCN%> and <%= Request.ClientCertificate(“IssuerCN”) %>. However they both cannot display the value. <% dim fs,uploadFilePath,uploadPath, theCert %> <% set fs=Server.CreateObject(“Scripting.FileSystemObject”) theCert=uploadFilePath & uploadPath & “\” & … Read more

SUMPROD over a set and a tuple

In the documentation of Python 3.12, it said that sumprod(p, q) returns the sum of products of values from two iterables p and q. I tried the following example in IDLE, with a set and a tuple: ptup = (1, 3, 5, 7) qset = {2, 3, 5, 8} math.sumprod(qset, ptup) 64 It is an … Read more

elasticsearch.BadRequestError: BadRequestError(400, ‘parsing_exception’, ‘unknown query [query]’)

The specific error traceback is as follows: Here is my current Python code: top_k=3 query = { “query”: { “script_score”: { “query”: { “match_all”: {} }, “script”: { “source”: “cosineSimilarity(params.query_vector, ‘ask_vector’) + 1.0”, “lang”: “painless”, “params”: { “query_vector”: query_embedding.tolist() } } } }, “size”: top_k } res = es.search(index=index_name, query=query) What am I doing wrong? … Read more

Can’t access “on_delete” argument of model field using _meta class (Django)

Title. I’m trying to access the on_delete argument of the field “org” here: class OrgLocation(models.Model): org = models.OneToOneField( Org, primary_key=True, on_delete=models.CASCADE, blank=True ) And I’m trying to access it with: OrgLocation._meta.get_field(“org”).on_delete But when I run this, I get an attribute error: AttributeError: ‘OneToOneField’ object has no attribute ‘on_delete’ Trying to access primary_key works just fine … Read more

Powershell Remoting for microsoft exchange using winrm is failing with below error

Im trying to execute microsoft exchange command from remote client using winrm. Connection established successfully, im able to execute basic commands(Get-Date..) and able to execute some commands related to AD. But when it comes to Exchange related commands(Get-Mailbox) it fails with below error. Active Directory operation failed on . The supplied credential for ‘domain/user’ is … Read more

React component rendered with createPortal with state controlled by parents will not rerender on state change

My issue is explained on this live example : https://stackblitz.com/edit/stackblitz-starters-qcvjsz?file=src%2FApp.tsx Basically I’m passing a list of options to a radio button list, with the state and setter to a child component rendered with createPortal, however when the options are clicked in the child the parent component updates it’s state, but not the child, so the … Read more

How to select among jpg and png format files stored in PostgreSQL and quickly create PDF files in Django [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 21 hours ago. This post was edited and submitted for review 19 hours ago and failed to reopen the post: Original close reason(s) were not resolved … Read more