question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attribute named `attributes` bug

See original GitHub issue

If I pass a field named attributes I see these stack trace:

     TypeError: Cannot read property 'attributes' of undefined
      at [object Object].Instance.set (node_modules/sequelize/lib/instance.js:305:38)
      at [object Object].funcs.(anonymous function) (node_modules/sequelize/lib/model.js:769:23)
      at [object Object].Model.refreshAttributes (node_modules/sequelize/lib/model.js:935:38)
      at [object Object].Model.init (node_modules/sequelize/lib/model.js:720:8)
      at [object Object].Sequelize.define (node_modules/sequelize/lib/sequelize.js:578:17)
      at defineModel (model/index.js:37:35)

Expected: Work as usual. Or (at least) friendly error.

Sorry if this is a dup. Didn’t find it 😭

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:4
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
yawetsecommented, Nov 21, 2017

This is still an issue

6reactions
matthojocommented, Jul 5, 2017

This is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Woocommerce Product Import Bug | Attribute Name ...
The Variation keeps the “wrong” attribute names after importing a correct setup csv and still shows : Attribute 1 Name = Color |...
Read more >
Error: Unsupported attribute , each.value is object with 2 ...
i'm trying to create multiple Network interfaces by using for_each and locals, here is my code locals { network_interfaces = { a ...
Read more >
Error: Unsupported attribute. This object does not have an ...
The module that you are using module.nsg_app1 does not have nsg_name attribute. This means that it does not output such a variable in...
Read more >
NetCDF: Attributes - Unidata Software Documentation
Global attributes are related to the netCDF dataset as a whole and may be used for purposes such as providing a title or...
Read more >
Attribute syntax - Manual - PHP
The attribute name is an unqualified, qualified or fully-qualified name as described in Using Namespaces Basics. Arguments to the attribute are optional, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found