Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: no implicit conversion of String into Integer #89

Open
webserveis opened this issue Mar 24, 2018 · 2 comments
Open

Error: no implicit conversion of String into Integer #89

webserveis opened this issue Mar 24, 2018 · 2 comments

Comments

@webserveis
Copy link

webserveis commented Mar 24, 2018

Recive error in https://www.jasonbase.com/

500 Error

Sorry, the server failed with the error: no implicit conversion of String into Integer

[
  {
    "uid": "8f3c4688-2f97-11e8-b467-0ed5f89f718b",
    "icon": "calculator",
    "title": "Task Flow Hello World",
    "description": "Say Hello world",
    "tags": "dialog",
    "free": true,
    "author": "webserveis",
    "publish": "2018-03-23",
    "version": "1.0.1",
    "source": "https://pastebin.com/raw/CGHyWKgC"
  },
  {
    "uid": "255cef64-2f98-11e8-b467-0ed5f89f718b",
    "icon": "calculator",
    "title": "Tip Calculator",
    "description": "Calculates a tip",
    "tags": "calculator, tip, restaurant, service",
    "free": true,
    "author": "webserveis",
    "publish": "2018-03-23",
    "version": "1.0.1",
    "source": "https://pastebin.com/raw/CGHyWKgC"
  }
]

I use https://jsoneditoronline.org/ for generate valid json,

It seems to be a bug, since the json seems to be valid

@gliechtenstein
Copy link
Contributor

gliechtenstein commented Mar 24, 2018

Thanks for reporting, I have just fixed it on jasonbase.com Try it out.

Just to clarify, Jasonbase is just a site I am maintaining to make it easy for anyone to quickly build apps. Technically you can host your JSON from anywhere, like github or pastebin or whatever, which is the whole point of using JSON as a markup because it makes the apps completely portable.

The reason Jasonbase is useful is because most pastebin like sites are built on flat file and the content gets cached on CDN, which makes it very hard to iterate on the markup, because they won't update immediately when you make updates to the JSON. This is why I built Jasonbase in the first place, to get rid of caching. So feel free to use it, but I just wanted to let you know just in case you were confused about the relationship between Jasonette project and Jasonbase site (You can roll your own JSON server using something like http-server for example, and don't really need Jasonbase)

If you have questions or bug reports about Jasonbase going forward, please feel free to post on forum.jasonette.com, you can any questions related to Jasonette there, not just bug reports for Jasonette framework itself.

@webserveis
Copy link
Author

webserveis commented Apr 4, 2018

Thanks,
Fixed the error when creating new json, but the error persists when you edit the json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants