dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 376 forks source link

Undefined error, what? #503

Closed FilipLukac closed 10 years ago

FilipLukac commented 10 years ago

Hello, I have problem, if I run my code at localhost, everything went good. But If I run my code at production server. Its give me this error

URIError: URI malformed at decodeURIComponent (native) at Url.parse (url.js:173:21) at Object.urlParse as parse at Object.exports.connect (/opt/betfair/node_modules/orm/lib/ORM.js:72:14) at new sModel (/opt/betfair/models/sModel.js:17:18) at Object.module.exports.checkApiKey (/opt/betfair/services/Api.js:560:13) at Object.handle (/opt/betfair/http.js:45:9) at next_layer (/opt/betfair/node_modules/express/lib/router/route.js:103:13) at Route.dispatch (/opt/betfair/node_modules/express/lib/router/route.js:107:5) at /opt/betfair/node_modules/express/lib/router/index.js:205:24

dxg commented 10 years ago

It means the connection URL for your database is incorrect. Maybe a misplaced slash, dot, or something similar.

FilipLukac commented 10 years ago

I fixed that, it was " % " in my connection string

dxg commented 10 years ago

:+1: