Comments (3)
Thanks - will look into this soon.
from mountebank.
Reproduced by creating a .NET client connecting from a different machine. Set the debug option on simplesmtp, and got the following log.
BB9145:mountebank:% bin/mb --loglevel debug <master ✗>
info: [mb:2525] mountebank v1.0.0 now taking orders - point your browser to http://localhost:2525 for help
info: [mb:2525] POST /imposters
debug: [mb:2525] 192.168.35.129:4270 => {"protocol":"smtp","port":3000}
info: [smtp:3000] Open for business...
CONNECTION FROM 192.168.35.129
Connection from 192.168.35.129
OUT: "220 BB9145.local ESMTP node.js simplesmtp"
debug: [smtp:3000] 192.168.35.129:4271 ESTABLISHED
COMMAND: EHLO WIN-1H1KP2T2PHK
OUT: "250-BB9145.local at your service, [192.168.35.129]
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 STARTTLS"
COMMAND: MAIL FROM:[email protected]
OUT: "250 2.1.0 Ok"
COMMAND: RCPT TO:[email protected]
OUT: "250 2.1.0 Ok"
COMMAND: DATA
OUT: "354 End data with ."
info: [smtp:3000] 192.168.35.129 => Envelope from: [email protected] to: ["[email protected]"]
DATA: MIME-Version: 1.0
From: [email protected]
To: [email protected]
Date: 27 Apr 2014 07:55:02 -0600
Subject: Thank you for your order!
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
DATA:
Hello Customer, Thank you for your order from company.com
debug: [smtp:3000] 192.168.35.129 => {"requestFrom":"192.168.35.129","envelopeFrom":"[email protected]","envelopeTo":["[email protected]"],"from":{"address":"[email protected]","name":""},"to":[{"address":"[email protected]","name":""}],"cc":[],"bcc":[],"subject":"Thank you for your order!","priority":"normal","references":[],"inReplyTo":[],"text":"Hello Customer, Thank you for your order from company.com\n","html":"","attachments":[]}
OUT: "250 2.0.0 Ok: queued as ae7de59638c87450fd4a"
info: [mb:2525] DELETE /imposters/3000
OUT: "421 4.4.2 BB9145.local Error: client error"
error: [smtp:3000] 192.168.35.129:4271 transmission error X=> {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
debug: [smtp:3000] 192.168.35.129:4271 CLOSED
from mountebank.
FWIW, when I debug the code (e.g. with node-inspector) sometimes the error doesn't appear.
from mountebank.
Related Issues (20)
- Add binary body representation for http(s) requests for /imposters/{key} endpoint
- Stable release with ARM support
- Master commits break projects using the latest version HOT 3
- Creating & deleting imposters in a load balanced setup HOT 1
- EACCES: permission denied, open 'mb.pid' with version `2.8.1` HOT 2
- Expect field in the header HOT 1
- Mountebank doesn't show imposters metrics
- QUESTION: How to copy (behavior) integer value from path to body field? HOT 1
- ee key too small HOT 6
- How to close tcp connection by Imposter HOT 1
- [Feature Request] Allow mountebank to send back statusMesage
- Mongodb as log transport
- bug in src/util/helpers.js merge function for case with an Array field
- Mountebank beautifies JSON responses from proxies before replying to the caller.
- Copied request object coming back as `[object Object]`
- Mocha test hangs after all tests pass when `imposters` endpoint is called. HOT 1
- How to configure mountebank to handle subdomains?
- GET imposter(s) with `replayable: true` does not return `allowCORS` property
- Can Mountebank proxy batch request?
- Async Support for imposterRepository needs to be deeper.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mountebank.