Coder Social home page Coder Social logo

Not working about clarity-ai HOT 13 OPEN

mckaywrigley avatar mckaywrigley commented on September 27, 2024
Not working

from clarity-ai.

Comments (13)

draeder avatar draeder commented on September 27, 2024 3

Coincidentally, I did get errors this time. Interestingly it seems to be that specific questions cause errors. I asked it, "What is cool?".

The error it threw in the browser:

1 of 1 unhandled error

Unhandled Runtime Error
Error: Internal Server Error

Source
components/Search.tsx (42:12) @ fetchSources

  40 | if (!response.ok) {
  41 |   setLoading(false);
> 42 |   throw new Error(response.statusText);
     |        ^
  43 | }
  44 | 
  45 | const { sources }: { sources: Source[] } = await response.json();
Call Stack
async handleSearch
components/Search.tsx (27:20)

The error it threw on the server:

[DOMException [InvalidCharacterError]: "[class]" did not match the Name production]

from clarity-ai.

draeder avatar draeder commented on September 27, 2024

It works fine for me.

  1. Clone the repo
  2. npm install inside the repo folder
  3. npm run dev
  4. In your browser: http://localhost:3000

from clarity-ai.

IdrisGame avatar IdrisGame commented on September 27, 2024

yeah it does not work it gives error at the end

from clarity-ai.

draeder avatar draeder commented on September 27, 2024

@IdrisGame What is the error?

from clarity-ai.

IdrisGame avatar IdrisGame commented on September 27, 2024

@IdrisGame What is the error?

Try it, once I put the api, then do the search it gives Answer Error. Doesnt output the answer but gives Answer error

from clarity-ai.

draeder avatar draeder commented on September 27, 2024

These are the possible errors: https://github.com/search?q=repo%3Amckaywrigley%2Fclarity-ai%20answer%20error&type=code

What is the exact error in your browser console logs?

from clarity-ai.

IdrisGame avatar IdrisGame commented on September 27, 2024

These are the possible errors: https://github.com/search?q=repo%3Amckaywrigley%2Fclarity-ai%20answer%20error&type=code

What is the exact error in your browser console logs?

Have you tried on your end do you get any error. Also I dont know if is because I put gpt 3 instead of gpt3.5

from clarity-ai.

IdrisGame avatar IdrisGame commented on September 27, 2024

Are you able to fix it?

from clarity-ai.

JenniferDevelopez avatar JenniferDevelopez commented on September 27, 2024

I have the same error "Unhandled Runtime Error"

from clarity-ai.

jpotw avatar jpotw commented on September 27, 2024

Coincidentally, I did get errors this time. Interestingly it seems to be that specific questions cause errors. I asked it, "What is cool?".

The error it threw in the browser:

1 of 1 unhandled error

Unhandled Runtime Error
Error: Internal Server Error

Source
components/Search.tsx (42:12) @ fetchSources

  40 | if (!response.ok) {
  41 |   setLoading(false);
> 42 |   throw new Error(response.statusText);
     |        ^
  43 | }
  44 | 
  45 | const { sources }: { sources: Source[] } = await response.json();
Call Stack
async handleSearch
components/Search.tsx (27:20)

The error it threw on the server:

[DOMException [InvalidCharacterError]: "[class]" did not match the Name production]

ran it and getting the same Error message.

from clarity-ai.

Yevanchen avatar Yevanchen commented on September 27, 2024

hey guys the error message indicates that an invalid URL was passed to the URL constructor in your Next.js API route at pages/api/sources.ts on line 38.
There are two main modifications:

  1. When extracting links, the cleanedHref is decoded and checked to ensure that the decoded link starts with "http://" or "https://" to ensure it is a valid absolute URL.
  2. When filtering links, the code for creating a URL object is wrapped in a try-catch block. If an error is thrown due to an invalid URL, we catch the error, log it, and return false to exclude the link from the filtered results.
    With these modifications, invalid URLs should be handled properly and prevent the occurrence of TypeError: Invalid URL errors.

from clarity-ai.

turnerll avatar turnerll commented on September 27, 2024

What's the solution? I have the same problem here.
https://share.zight.com/o0uOnW4L

from clarity-ai.

ziliangpeng avatar ziliangpeng commented on September 27, 2024

+1. Can't get it to work. The project also seems unmaintained?

I'm working on a new one, with local LLM support. The landscape is already so different than when this project started.

from clarity-ai.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.