Giter Site home page Giter Site logo

try catch... about tedious HOT 8 CLOSED

tediousjs avatar tediousjs commented on June 19, 2024
try catch...

from tedious.

Comments (8)

pekim avatar pekim commented on June 19, 2024

What error do you get Manish?

Does the error occur only when the catch block is executed, or does it occur regardless of whether the catch block is executed?

from tedious.

sapkal-manish avatar sapkal-manish commented on June 19, 2024

it occur regardless of catch block is executed.

i just un comment try...catch block from store procedure, and it give me error...

from tedious.

pekim avatar pekim commented on June 19, 2024

What error do you get? Is it from the server, from tedious, or Javascript error?
What version of tedious are you using?

If the error is something like Unsupported ENVCHANGE type ... then can you try with the latest from master please?

from tedious.

sapkal-manish avatar sapkal-manish commented on June 19, 2024

iisnode encountered an error when processing the request.

HTTP status: 500
HTTP reason: Internal Server Error

You are receiving this HTTP 200 response because

E:...\node_modules\tedious\lib\token\token-stream-parser.js:103
throw error;

Error: Unsupported ENVCHANGE type 8 BEGIN_TXN at offset 3
at Object.227 (E:...\node_modules\tedious\lib\token\env-change-token-parser.js:67:15)
at Parser.nextToken (E:...\node_modules\tedious\lib\token\token-stream-parser.js:81:34)
at Parser.addBuffer (E:...\node_modules\tedious\lib\token\token-stream-parser.js:65:17)
at Connection.sendPacketToTokenStreamParser (E:...\node_modules\tedious\lib\connection.js:439:35)
at Connection.<anonymous> (E:...\node_modules\tedious\lib\connection.js:146:23)
at Connection.dispatchEvent (E:...\node_modules\tedious\lib\connection.js:375:59)
at MessageIO.<anonymous> (E:...\node_modules\tedious\lib\connection.js:329:20)
at MessageIO.emit (events.js:67:17)
at MessageIO.<anonymous> (E:...\node_modules\tedious\lib\message-io.js:47:12)
at Socket.<anonymous> (E:...\node_modules\tedious\lib\message-io.js:3:59)

from tedious.

sapkal-manish avatar sapkal-manish commented on June 19, 2024

i have got 'Unsupported ENVCHANGE type' error as you mentioned. but i can't understand your given solution.
please explain me what you want to say... (If the error is something like Unsupported ENVCHANGE type ... then can you try with the latest from master please?)

from tedious.

pekim avatar pekim commented on June 19, 2024

Support for transactions has been added, which includes recognition of the ENVCHANGE tokens that relate to transactions. It is in the master branch, but has not been published to npm yet.

You can clone the repo, and use npm link (or however you prefer to use a local copy of a project).

Or you can wait a few days (maybe a week), and I'll publish a new version of tedious to npm. Sorry it's taken so long to get transaction support out there.

from tedious.

sapkal-manish avatar sapkal-manish commented on June 19, 2024

thank you very much sir... i am waiting for 1 more week ...

from tedious.

pekim avatar pekim commented on June 19, 2024

I've just published v0.0.7, which has support for transactions.

from tedious.

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.