Coder Social home page Coder Social logo

Comments (7)

shikharseth93 avatar shikharseth93 commented on July 23, 2024 6

"embeded_url":{
"type": "oembed",
"columnType": "string"
}

@arnauddoub for me this worked, but I am stuck with different one
while adding/updating any field in particular collection I am getting this message and not able to save

{"error":{"contentType.attributes.embeded_url.type":["contentType.attributes.embeded_url.type must be one of the following values: media, string, text, richtext, json, enumeration, password, email, integer, biginteger, float, decimal, date, time, datetime, timestamp, boolean, uid, component, dynamiczone"],"contentType.attributes.embeded_url":["contentType.attributes.embeded_url field cannot have keys not specified in the object shape"]}}

any idea? @nicolashmln

from strapi-plugin-oembed.

nicolashmln avatar nicolashmln commented on July 23, 2024

Oh yeah, I only tried with a SQL database. If you try "columnType": "text" in your model, does it work?
If so I'll update the readme

from strapi-plugin-oembed.

Zielgestalt avatar Zielgestalt commented on July 23, 2024

"columnType": "text" works for postgres.

from strapi-plugin-oembed.

RobinSJames avatar RobinSJames commented on July 23, 2024

Oh yeah, I only tried with a SQL database. If you try "columnType": "text" in your model, does it work?

Getting this error when using MongoDB:

error TypeError: Invalid schema configuration: "Text" is not a valid type at path "oembed".

from strapi-plugin-oembed.

RobinSJames avatar RobinSJames commented on July 23, 2024

If I use "columnType: "string"

The environment runs but terminal outputs the following:

(node:90880) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added to [WriteStream]. Use emitter.setMaxListeners() to increase limit

Then when trying to create a new article I get the following on screen:

Screenshot 2021-01-15 at 13 47 47

from strapi-plugin-oembed.

nicolashmln avatar nicolashmln commented on July 23, 2024

@RobinSJames Which version of strapi do you run? Seems like the columnType is only supported from the 3.3.4 https://github.com/strapi/strapi/releases/tag/v3.3.4
But I don't know what are the values for MongoDB, maybe String with a capital S? If you could do some tests it will be helpful. Thank you

from strapi-plugin-oembed.

gabyzenack avatar gabyzenack commented on July 23, 2024

something new

from strapi-plugin-oembed.

Related Issues (13)

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.