Closed ghost closed 11 years ago
hey again
Its ok, I can be the same.
I figured out some of the point you made myself, but its still not working. So here is all the settings
docpad.coffee. sunny: configFromEnv: true
This is my start file (Windows): SET DPATH=node_modules\docpad\bin\docpad
SET NODE_ENV=production
SET DOCPAD_SUNNY_PROVIDER=aws SET DOCPAD_SUNNY_ACCOUNT= SET DOCPAD_SUNNY_SECRETKEY= SET DOCPAD_SUNNY_CONTAINER=gedw99
REM true|false: Whether or not to use SSL. False by default. REM SET DOCPAD_SUNNY_SSL = true
REM The default permissions to use. Set to public-read by default. Check the Amazon and Google documentation for details. REM SET DOCPAD_SUNNY_ACL:public-read
REM Number of times to retry uploads. -1 for infinite. 2 by default. REM SET DOCPAD_SUNNY_RETRY_LIMIT:-1
REM The URL to use. E.g. s3.amazonaws.com REM SET DOCPAD_SUNNY_AUTHURL:
node %DPATH% generate
The output:
C:_data\play\docpad\Testwebsite>´╗┐SET DPATH=node_modules\docpad\bin\docpad '´╗┐SET' is not recognized as an internal or external command, operable program or batch file.
C:_data\play\docpad\Testwebsite>SET NODE_ENV=production
C:_data\play\docpad\Testwebsite>SET DOCPAD_SUNNY_PROVIDER=aws
C:_data\play\docpad\Testwebsite>SET DOCPAD_SUNNY_ACCOUNT=***
C:_data\play\docpad\Testwebsite>SET DOCPAD_SUNNY_SECRETKEY=***
C:_data\play\docpad\Testwebsite>SET DOCPAD_SUNNY_CONTAINER=gedw99
C:_data\play\docpad\Testwebsite>REM true|false: Whether or not to use SSL. False by default.
C:_data\play\docpad\Testwebsite>REM SET DOCPAD_SUNNY_SSL = true
C:_data\play\docpad\Testwebsite>REM The default permissions to use. Set to public-read by default. Check the Amazon and Google documentation for details.
C:_data\play\docpad\Testwebsite>REM SET DOCPAD_SUNNY_ACL:public-read
C:_data\play\docpad\Testwebsite>REM Number of times to retry uploads. -1 for infinite. 2 by default.
C:_data\play\docpad\Testwebsite>REM SET DOCPAD_SUNNY_RETRY_LIMIT:-1
C:_data\play\docpad\Testwebsite>REM The URL to use. E.g. s3.amazonaws.com
C:_data\play\docpad\Testwebsite>REM SET DOCPAD_SUNNY_AUTHURL:
C:_data\play\docpad\Testwebsite>node node_modules\docpad\bin\docpad generate
info: Welcome to DocPad v6.38.1
info: Plugins: cleanurls, coffeescript, downloader, eco, ghpages, less, livereload, marked, partials, related, stylus, sunny, text
info: Environment: production
info: Generating...
Sunny plugin getting config from environment...
Found 1 configurations in config file.
One of the config variables is missing. Printing config:
{ provider: undefined,
account: undefined,
secretKey: undefined,
ssl: undefined,
authUrl: undefined }
Container is undefined
info: Generated all 118 files in 5.097 seconds
info: The action completed successfully
Got container gedw99.
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at EventEmitter.addListener (events.js:160:15)
at new WriteStream (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\stream.js:423:19)
at AwsBlob.put (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\provider\aws\blob\blob.js:135:12)
at Container.putBlob (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\base\blob\container.js:234:35)
at uploadData (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:24:31)
at C:_data\play\docpad\Testwebsite\nodemodules\docpad-plugin-sunny\sunny.plugin.js:78:14
at Array.forEach (native)
at Function..each._.forEach (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\backbone\node_modules\underscore\underscore.js:78:11)
at FilesCollection.Collection.(anonymous function) as forEach
at doUpload (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:56:8)
at null.
i have node inspector and got it all setup in debugging mode.
But cant find the error. I admit i am still learning node inspector.
Its is below.
I should point out that everything works perfectly if i take out the sunny plugin..
docpadConfig = {
# =================================
# Template Data
# These are variables that will be accessible via our templates
# To access one of these within our templates, refer to the FAQ: https://github.com/bevry/docpad/wiki/FAQ
templateData:
# Specify some site properties
site:
# The production url of our website
url: "http://website.com"
# Here are some old site urls that you would like to redirect from
oldUrls: [
'www.website.com',
'website.herokuapp.com'
]
# The default title of our website
title: "Your Website"
# The website description (for SEO)
description: """
When your website appears in search results in say Google, the text here will be shown underneath your website's title.
"""
# The website keywords (for SEO) separated by commas
keywords: """
place, your, website, keywoards, here, keep, them, related, to, the, content, of, your, website
"""
# The website author's name
author: "Your Name"
# The website author's email
email: "your@email.com"
# Styles
styles: [
"/styles/twitter-bootstrap.css"
"/styles/style.css"
]
# Scripts
scripts: [
"//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js",
"//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js",
"/scripts/script.js"
]
# -----------------------------
# Helper Functions
# Get the prepared site/document title
# Often we would like to specify particular formatting to our page's title
# we can apply that formatting here
getPreparedTitle: ->
# if we have a document title, then we should use that and suffix the site's title onto it
if @document.title
"#{@document.title} | #{@site.title}"
# if our document does not have it's own title, then we should just use the site's title
else
@site.title
# Get the prepared site/document description
getPreparedDescription: ->
# if we have a document description, then we should use that, otherwise use the site's description
@document.description or @site.description
# Get the prepared site/document keywords
getPreparedKeywords: ->
# Merge the document keywords with the site keywords
@site.keywords.concat(@document.keywords or []).join(', ')
# =================================
# Collections
# These are special collections that our website makes available to us
collections:
pages: (database) ->
database.findAllLive({pageOrder: $exists: true}, [pageOrder:1,title:1])
posts: (database) ->
database.findAllLive({tags:$has:'post'}, [date:-1])
# =================================
# Plugins
plugins:
downloader:
downloads: [
{
name: 'Twitter Bootstrap'
path: 'src/files/vendor/twitter-bootstrap'
url: 'https://nodeload.github.com/twitter/bootstrap/tar.gz/master'
tarExtractClean: true
}
]
sunny:
configFromEnv: true
# envPrefixes: ["DOCPAD_SUNNY_"]
# =================================
# DocPad Events
# Here we can define handlers for events that DocPad fires
# You can find a full listing of events on the DocPad Wiki
events:
# Server Extend
# Used to add our own custom routes to the server before the docpad routes are added
serverExtend: (opts) ->
# Extract the server from the options
{server} = opts
docpad = @docpad
# As we are now running in an event,
# ensure we are using the latest copy of the docpad configuraiton
# and fetch our urls from it
latestConfig = docpad.getConfig()
oldUrls = latestConfig.templateData.site.oldUrls or []
newUrl = latestConfig.templateData.site.url
# Redirect any requests accessing one of our sites oldUrls to the new site url
server.use (req,res,next) ->
if req.headers.host in oldUrls
res.redirect(newUrl+req.url, 301)
else
next()
# Environment
# Which environment we should load up
# If not set, we will default the `NODE_ENV` environment variable, if that isn't set, we will default to `development`
env: null # default
# Environments
# Allows us to set custom configuration for specific environments
environments: # default
development: # default
# Always refresh from server
maxAge: false # default
# Only do these if we are running standalone via the `docpad` executable
checkVersion: process.argv.length >= 2 and /docpad$/.test(process.argv[1]) # default
welcome: process.argv.length >= 2 and /docpad$/.test(process.argv[1]) # default
prompts: process.argv.length >= 2 and /docpad$/.test(process.argv[1]) # default
# Listen to port 9005 on the development environment
port: 9005 # example
production:
port: 80
}
module.exports = docpadConfig
I think i might have found the error in your code.
If i set the DOCPAD_SUNNY_CONTAINER it fails to pick up any of the other settings If I set the DOCPAD_SUNNY_PROVIDER, DOCPAD_SUNNY_ACCOUNT, DOCPAD_SUNNY_SECRETKEY it does pick up thos settings
SET DPATH=node_modules\docpad\bin\docpad
SET NODE_ENV=production
SET DOCPAD_SUNNY_PROVIDER=aws SET DOCPAD_SUNNY_ACCOUNT= SET DOCPAD_SUNNY_SECRETKEY= REM SET DOCPAD_SUNNY_CONTAINER=gedw99
REM true|false: Whether or not to use SSL. False by default. REM SET DOCPAD_SUNNY_SSL = true
REM The default permissions to use. Set to public-read by default. Check the Amazon and Google documentation for details. REM SET DOCPAD_SUNNY_ACL:public-read
REM Number of times to retry uploads. -1 for infinite. 2 by default. REM SET DOCPAD_SUNNY_RETRY_LIMIT:-1
REM The URL to use. E.g. s3.amazonaws.com REM SET DOCPAD_SUNNY_AUTHURL:
node %DPATH% generate
sunny:
configFromEnv: true
envPrefixes: ["DOCPAD_SUNNY_"]
cloudConfigs: []
OR
cloudConfigs: [
{
sunny: {
provider: 'google'
account: 'GOOGOPSDG76978SDG'
secretKey: 'SD&*G68S&^DG*&6s8SD'
ssl: true
}
container: 'herpderp.com'
acl: 'private'
},
{
sunny: {
provider: 'aws'
account: 'ADSDG876SDG87S'
secretKey: 'A(*G&(S97*S^DG('
ssl: true
}
container 'meow'
acl: false #Uses the policy already set on S3.
retryLimit: -1 # Retry as long as is necessary until the upload works.
}]
When i run its bombs totally:
error: Something went wrong with the action error: An error occured: SyntaxError: unexpected CALL_START at Object.exports.throwSyntaxError (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\cson\node_modules\coffee-script\lib\coffee-script\help ers.js:197:13) at Object.parser.yy.parseError (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\cson\node_modules\coffee-script\lib\coffee-script\coffee-s cript.js:265:20) at Object.parse (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\cson\node_modules\coffee-script\lib\coffee-script\parser.js:537:22) at exports.compile.compile (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\cson\node_modules\coffee-script\lib\coffee-script\coffee-scrip t.js:35:24) at Object.loadFile (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\cson\node_modules\coffee-script\lib\coffee-script\coffee-script.js:176 :14) at Module.load (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\cson\node_modules\coffee-script\lib\coffee-script\coffee-script.js:211:36)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.CSON.parseFile (C:\_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\cson\out\lib\cson.js:29:18)
at C:\_data\play\docpad\Testwebsite\node_modules\docpad\out\lib\docpad.js:1344:19
at C:\_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\safefs\out\lib\safefs.js:181:16
at Object.cb [as oncomplete] (fs.js:168:19)
C:_data\play\docpad\Testwebsite>
I have worked out its to do with the CONTAINER property
See my comment at this URL:
https://github.com/bobobo1618/docpad-plugin-sunny/issues/7#issuecomment-19460643
notepad ++
File encoding is ansi for config and bat files i question.
I tried changing them to UTF8 on both and make no difference to the results.
am transferring to my Ubuntu VM to try it now.
Ok i got the exact same code running on Ubuntu.
It has exactly the same behaviour.
There is something weird with how your picking up the environment setting.
On Windows and Lnux i can reproduce the exact Bug https://github.com/bobobo1618/docpad-plugin-sunny/issues/7#issuecomment-19460643
export DOCPAD_SUNNY_CONTAINER=gedw99 is what breaks it
I got it working.
Not even sure what i did.
Now i get a redirect error when it connects to Aws S3
Welcome to Git (version 1.8.3-preview20130601)
Run 'git help git' to display the help index.
Run 'git help
gerard@GWEBBLAP01 /c/_data/play/docpad/Testwebsite (master) $ LocalDeployToS3.sh info: Welcome to DocPad v6.38.1 info: Plugins: cleanurls, coffeescript, downloader, eco, ghpages, less, livereload, marked, partials, related, stylus, sunny, text info: Environment: production info: Generating... Sunny plugin getting config from environment... Found 1 configurations in config file. One of the config variables is missing. Printing config: { provider: undefined, account: undefined, secretKey: undefined, ssl: undefined, authUrl: undefined } Container is undefined info: Generated all 118 files in 5.416 seconds info: The action completed successfully Received error trying to connect to provider: Error: <?xml version="1.0" encoding="UTF-8"?>
TemporaryRedirect
TemporaryRedirect
your right. ubuntudesign has a cname in it But thats not the issue.
Look i started to use a different bucket It uploads, but only half the files ever get there. And there are a ton of error messages spat out by your plugin.
It seems very flakey at the moment. Is this what you have also found ?
G
On 14 June 2013 23:08, bobobo1618 notifications@github.com wrote:
Is the bucket you're uploading to aliased to a CNAME (running as a website called ubuntudesign) or something o.O? On 15/06/2013 6:09 AM, "Gerard Webb" notifications@github.com wrote:
I got it working.
Not even sure what i did.
Now i get a redirect error when it connects to Aws S3
Welcome to Git (version 1.8.3-preview20130601)
Run 'git help git' to display the help index. Run 'git help ' to display help for specific commands.
gerard@GWEBBLAP01 /c/_data/play/docpad/Testwebsite (master) $ LocalDeployToS3.sh info: Welcome to DocPad v6.38.1 info: Plugins: cleanurls, coffeescript, downloader, eco, ghpages, less, livereload, marked, partials, related, stylus, sunny, text info: Environment: production info: Generating... Sunny plugin getting config from environment... Found 1 configurations in config file. One of the config variables is missing. Printing config: { provider: undefined, account: undefined, secretKey: undefined, ssl: undefined, authUrl: undefined } Container is undefined info: Generated all 118 files in 5.416 seconds info: The action completed successfully Received error trying to connect to provider: Error: <?xml version="1.0" encoding="UTF-8"?> TemporaryRedirectPlease re-send this request to the specified temporary endpoint. Continue to use the original request en dpoint for future requests.7A64084CCF0FADFDwww.ubuntudesign.com fyTSJrkTlI0rNZxS0MRLNyD5nKUNl czAXcar2OakkfyoMgK9UnNQAvmwQCRuyYQz www.ubuntudesign.com.s3-external-3.amazonaws.com<?xml version="1.0" encoding= "UTF-8"?> TemporaryRedirectPlease re-send this request to the specified temporary endpoint. Continue to use the original request en dpoint for future requests.7A64084CCF0FADFDwww.ubuntudesign.com fyTSJrkTlI0rNZxS0MRLNyD5nKUNl czAXcar2OakkfyoMgK9UnNQAvmwQCRuyYQz www.ubuntudesign.com.s3-external-3.amazonaws.com
gerard@GWEBBLAP01 /c/_data/play/docpad/Testwebsite (master) $
— Reply to this email directly or view it on GitHub< https://github.com/bobobo1618/docpad-plugin-sunny/issues/7#issuecomment-19478830>
.
— Reply to this email directly or view it on GitHubhttps://github.com/bobobo1618/docpad-plugin-sunny/issues/7#issuecomment-19481818 .
Contact details: +49 1573 693 8595 (germany) +46 73 364 67 96 (sweden) skype: gedw99
yes i am using node v.0.10.11.
thanks for you help
g
On 15 June 2013 02:46, bobobo1618 notifications@github.com wrote:
Weird but doesn't appear to be an issue with my plugin as I can't reproduce it at all.
My guess is you're doing something weird with your environment variables or you've made a typo somewhere or something like that.
Only other thing I can think of is that you're using an unsupported version of Node (anything higher than 0.8.x).
— Reply to this email directly or view it on GitHubhttps://github.com/bobobo1618/docpad-plugin-sunny/issues/7#issuecomment-19488628 .
Contact details: +49 1573 693 8595 (germany) +46 73 364 67 96 (sweden) skype: gedw99
That there is your problem. Switch to v0.8.x and you'll be right. I use v0.8.23 personally.
I think the issue is that Sunny or something else upstream doesn't support the new versions of Node which is something I can't do anything about I'm afraid.
ok.
carious what the issue is.
I think sunny though is under active development still, so it might be worth trying out sunny with the latest version of node.
G
On 15 June 2013 03:31, bobobo1618 notifications@github.com wrote:
That there is your problem. Switch to v0.8.x and you'll be right. I use v0.8.23 personally.
I think the issue is that Sunny or something else upstream doesn't support the new versions of Node which is something I can't do anything about I'm afraid.
— Reply to this email directly or view it on GitHubhttps://github.com/bobobo1618/docpad-plugin-sunny/issues/7#issuecomment-19489312 .
Contact details: +49 1573 693 8595 (germany) +46 73 364 67 96 (sweden) skype: gedw99
For those who are reading this because they have the same problem: I encountered the issue and downgrading to 0.8.x solves the problem for me too. Another problem that it solved was SSL didn't work with 0.10.x.
You can feel free to submit an issue at the Sunny repo if you like, I have a feeling that's where the issue comes from. If it's fixed there all it should be on my end is an update to package.json
.
Good suggestion. I was about to open an issue and came across this: https://github.com/ryan-roemer/node-sunny/issues/13. Apparently it's because of stream v2, which makes a lot of sense given that it's an overhaul.
so would be great if this was fixed in the original code.
On 11 July 2013 05:26, Kenneth Kan notifications@github.com wrote:
Good suggestion. I was about to open an issue and came across this: ryan-roemer/node-sunny#13https://github.com/ryan-roemer/node-sunny/issues/13. Apparently it's because of stream v2, which makes a lot of sense given that it's an overhaul.
— Reply to this email directly or view it on GitHubhttps://github.com/bobobo1618/docpad-plugin-sunny/issues/7#issuecomment-20787880 .
Contact details: +49 1573 693 8595 (germany) +46 73 364 67 96 (sweden) skype: gedw99
C:_data\play\docpad\Testwebsite>LocalDeployToS3.cmd
C:_data\play\docpad\Testwebsite>SET DPATH=node_modules\docpad\bin\docpad
C:_data\play\docpad\Testwebsite>set NODE_ENV=production
C:_data\play\docpad\Testwebsite>set DOCPAD_SUNNY_PROVIDER=aws
C:_data\play\docpad\Testwebsite>set DOCPAD_SUNNY_ACCOUNT=***
C:_data\play\docpad\Testwebsite>set DOCPAD_SUNNY_SECRETKEY=***
C:_data\play\docpad\Testwebsite>set DOCPAD_SUNNY_CONTAINER=***
C:_data\play\docpad\Testwebsite>node node_modules\docpad\bin\docpad generate info: Welcome to DocPad v6.38.1 info: Plugins: cleanurls, coffeescript, downloader, eco, ghpages, less, livereload, marked, partials, related, stylus, sunny, text info: Environment: production info: Generating... Sunny plugin getting config from environment... Found 1 configurations in config file. One of the config variables is missing. Printing config: { provider: undefined, account: undefined, secretKey: undefined, ssl: undefined, authUrl: undefined } Container is undefined info: Generated all 118 files in 5.347 seconds info: The action completed successfully Got container gedw99. (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. Trace at EventEmitter.addListener (events.js:160:15) at new WriteStream (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\stream.js:423:19) at AwsBlob.put (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\provider\aws\blob\blob.js:135:12) at Container.putBlob (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\base\blob\container.js:234:35) at uploadData (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:24:31) at C:_data\play\docpad\Testwebsite\nodemodules\docpad-plugin-sunny\sunny.plugin.js:78:14 at Array.forEach (native) at Function..each._.forEach (C:_data\play\docpad\Testwebsite\node_modules\docpad\node_modules\backbone\node_modules\underscore\underscore.js:78:11) at FilesCollection.Collection.(anonymous function) as forEach at doUpload (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:56:8) at null. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:99:16)
at EventEmitter.emit (events.js:98:17)
at AuthenticatedRequest.processResults (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:453:10)
at IncomingMessage. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:427:16)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:910:16
at process._tickDomainCallback (node.js:459:13)
error: An error occured:
TypeError: Cannot read property 'container' of null
at null. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:97:28)
at EventEmitter.emit (events.js:98:17)
at AuthenticatedRequest.processResults (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:453:10)
at ClientRequest. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:389:16)
at ClientRequest.EventEmitter.emit (events.js:117:20)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:524:27)
error: An error occured:
TypeError: Cannot read property 'container' of null
at null. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:97:28)
at EventEmitter.emit (events.js:98:17)
at AuthenticatedRequest.processResults (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:453:10)
at ClientRequest. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:389:16)
at ClientRequest.EventEmitter.emit (events.js:117:20)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:524:27)
error: An error occured:
TypeError: Cannot read property 'container' of null
at null. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:97:28)
at EventEmitter.emit (events.js:98:17)
at AuthenticatedRequest.processResults (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:453:10)
at ClientRequest. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:389:16)
at ClientRequest.EventEmitter.emit (events.js:117:20)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:524:27)
error: An error occured:
TypeError: Cannot read property 'container' of null
at null. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:97:28)
at EventEmitter.emit (events.js:98:17)
at AuthenticatedRequest.processResults (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:453:10)
at ClientRequest. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:389:16)
at ClientRequest.EventEmitter.emit (events.js:117:20)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:524:27)
error: An error occured:
TypeError: Cannot read property 'container' of null
at null. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\sunny.plugin.js:97:28)
at EventEmitter.emit (events.js:98:17)
at AuthenticatedRequest.processResults (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:453:10)
at ClientRequest. (C:_data\play\docpad\Testwebsite\node_modules\docpad-plugin-sunny\node_modules\sunny\lib\request.js:389:16)
at ClientRequest.EventEmitter.emit (events.js:117:20)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:524:27)
docpad.coffee