Coder Social home page Coder Social logo

Comments (6)

juliettebeaudet avatar juliettebeaudet commented on June 5, 2024 6

I am trying out a sample link in my app which is https://www.google.com/
the package works fine showing the card thumbnail but the showGraphic={true} is not showing any image
but instead giving me this error on the console

image

    <ReactTinyLink
      cardSize="small"
      showGraphic={true}
      maxLine={2}
      minLine={1}
      url='https://www.google.com/'
    />

how to show the image?

Hi @unit-002,
You should change your proxy, since cors-anywhere.herokuapp.com stopped serving as an open one since January (see announcement: https://github.com/Rob--W/cors-anywhere/issues/301 ). You can work with cors.bridged instead (see article https://medium.com/bridgedxyz/cors-anywhere-for-everyone-free-reliable-cors-proxy-service-73507192714e), like so:

<ReactTinyLink
      cardSize="small"
      showGraphic={true}
      maxLine={2}
      minLine={1}
      url='https://www.google.com/'
      proxyUrl="https://cors.bridged.cc"
/>

from react-tiny-link.

unit-002 avatar unit-002 commented on June 5, 2024 4
<ReactTinyLink
      cardSize="small"
      showGraphic={true}
      maxLine={2}
      minLine={1}
      url='https://www.google.com/'
      proxyUrl="https://cors.bridged.cc"
/>

I will try this thanks
upadate: the preview is displaying now, thanks a lot!

from react-tiny-link.

msilucifer avatar msilucifer commented on June 5, 2024 2

Thanks, it works fine. :)

from react-tiny-link.

winhtaikaung avatar winhtaikaung commented on June 5, 2024

Hi @unit-002
Have you play around with the code sandbox ?

https://codesandbox.io/s/monp6n08n8

So that you can check the implementation with yours.

from react-tiny-link.

unit-002 avatar unit-002 commented on June 5, 2024

Hi @unit-002
Have you play around with the code sandbox ?

https://codesandbox.io/s/monp6n08n8

So that you can check the implementation with yours.

I did checked the codesandbox and follow the sample code, the image shows in code sandbox but doesn't show on mine still having the forbidden error but aside from the error the link works fine it goes to the right link when clicked. What could be the cause? Is it because I am on localhost?

here my list of dependencies aside from react tiny link

"@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "bootstrap": "^4.6.0",
    "bs-custom-file-input": "^1.3.4",
    "dotenv": "^8.2.0",
    "firebase": "^8.3.0",
    "moment": "^2.29.1",
    "react": "^17.0.1",
    "react-bootstrap": "^1.5.1",
    "react-dom": "^17.0.1",
    "react-draggable": "^4.4.3",
    "react-icons": "^4.2.0",
    "react-infinite-scroll-component": "^6.0.0",
    "react-router": "^5.2.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "react-textarea-autosize": "^8.3.2",
    "uuid": "^8.3.2",
    "web-vitals": "^1.0.1"

from react-tiny-link.

winhtaikaung avatar winhtaikaung commented on June 5, 2024

I will close this issue for now then. 😀

from react-tiny-link.

Related Issues (20)

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.