I have the following URL:
https://forecast.weather.gov/zipcity.php?inputstring=95014
I would like to figure out which URL it will redirect to. In this example it is:
https://forecast.weather.gov/MapClick.php?CityName=Cupertino&state=CA&site=MTR&lat=37.3042&lon=-122.095
I tried multiple solutions such as:
res.headers.location
and
res.headers.get('location')
But none of them seem to work. I know that the URL redirects because, I could successfully redirect in curl and google-chrome. Here is the code that I am running:
https.get('https://forecast.weather.gov/zipcity.php?inputstring=95014', res => console.log(res.headers.location))
When I was running in curl, I ran the following:
curl -Ls -o /dev/null -w %{url_effective} http://forecast.weather.gov/zipcity.php?inputstring=95014
And got the desired output of:
http://forecast.weather.gov/MapClick.php?CityName=Cupertino&state=CA&site=MTR&lat=37.3042&lon=-122.095
When I run curl:
$ curl -I https://forecast.weather.gov/zipcity.php?inputstring=95014
HTTP/2 302
server: Apache
x-nids-serverid: www1.mo
location: https://forecast.weather.gov/MapClick.php?CityName=Cupertino&state=CA&site=MTR&lat=37.3042&lon=-122.095
x-ua-compatible: IE=Edge
access-control-allow-origin: *
content-type: text/html; charset=UTF-8
content-length: 0
cache-control: max-age=722
expires: Mon, 26 Apr 2021 19:28:03 GMT
date: Mon, 26 Apr 2021 19:16:01 GMT
strict-transport-security: max-age=31536000 ; includeSubDomains ; preload
As you can see, there are multiple headers present here that are not present inside nodejs's results:
{
server: 'AkamaiGHost',
'mime-version': '1.0',
'content-type': 'text/html',
'content-length': '288',
expires: 'Mon, 26 Apr 2021 19:21:50 GMT',
date: 'Mon, 26 Apr 2021 19:21:50 GMT',
connection: 'close',
'strict-transport-security': 'max-age=31536000 ; includeSubDomains ; preload'
}
I would like to stick to the http module.
I have integrated my loopback application with appDynamics library and all the middlewares are not firing from then on.
Used the debug command - DEBUG=* npm start to get the logs and found these logs coming up.
All the middlewares declared through middleware.json and imperatively through app.middleware() command are having this error message - No matching layer found
Any idea what's going wrong here - Which loopback package is responsible for express routing implementation
2020-07-10T15:23:11.241Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:boot:executor Configuring middleware "/usr/nodejs/njsDT_SIT/apps/wlpn/ob-cof-funds-confirmation-consents-channel/package/node_modules/compression"
2020-07-10T15:23:11.243Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:app use initial compression
2020-07-10T15:23:11.244Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT express:router use [] compression
2020-07-10T15:23:11.245Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT express:router:layer new []
2020-07-10T15:23:11.245Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:app No matching layer is found for initial compression
2020-07-10T15:23:11.245Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:boot:executor Configuring middleware "/usr/nodejs/njsDT_SIT/apps/wlpn/ob-cof-funds-confirmation-consents-channel/package/node_modules/loopback-context/server/middleware/per-request.js" 2020-07-10T15:23:11.246Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:app use initial perRequestContext
2020-07-10T15:23:11.253Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT express:router use [] perRequestContext
2020-07-10T15:23:11.254Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT express:router:layer new []
2020-07-10T15:23:11.254Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:app No matching layer is found for initial perRequestContext
2020-07-10T15:23:11.254Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:boot:executor Configuring middleware "/usr/nodejs/njsDT_SIT/apps/wlpn/ob-cof-funds-confirmation-consents-channel/package/node_modules/cors"
2020-07-10T15:23:11.254Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:app use initial corsMiddleware
2020-07-10T15:23:11.254Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT express:router use [] corsMiddleware
2020-07-10T15:23:11.254Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT express:router:layer new []
2020-07-10T15:23:11.254Z - : pid:36871 worker:1 Fri, 10 Jul 2020 15:23:11 GMT loopback:app No matching layer is found for initial corsMiddleware```
This is my first contact with WebDAV and I have slight problems connecting to end-point.
Credentials are working fine when using Cyberduck client.
I need to configure container with davfs2 on Alpine or Ubuntu.
I don't have access to WebDAV server (SaaS E-Commerce platform, https://shoper.pl)
Using davfs2 I have managed to mount Nextcloud WebDAV (demo account) with success and no issues at all.
Versions: davfs2/1.5.5 neon/0.30.2
Details are below. Any suggestions?
Error:
Could not authenticate to server: rejected Digest challenge, rejected Basic challenge
/var/log/syslog
Jan 25 12:33:28 ubuntu-dev mount.davfs: Identity match for 'devshop-******.shoparena.pl': good
Jan 25 12:33:28 ubuntu-dev mount.davfs: Request sent; retry is 0.
Jan 25 12:33:28 ubuntu-dev mount.davfs: [status-line] < HTTP/1.1 200 OK#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Date: Sat, 25 Jan 2020 12:33:28 GMT#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [date], Value: [Sat, 25 Jan 2020 12:33:28 GMT]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Content-Type: text/html; charset=UTF-8#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [content-type], Value: [text/html; charset=UTF-8]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Transfer-Encoding: chunked#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [transfer-encoding], Value: [chunked]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Connection: keep-alive#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [connection], Value: [keep-alive]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Keep-Alive: timeout=20#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [keep-alive], Value: [timeout=20]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Dav: 1#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [dav], Value: [1]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Ms-Author-Via: DAV#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [ms-author-via], Value: [DAV]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Accept-Ranges: bytes#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [accept-ranges], Value: [bytes]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Vary: Brief,Prefer#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [vary], Value: [Brief,Prefer]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Allows: OPTIONS, GET, HEAD, PUT, DELETE, MKCOL, PROPFIND, PROPPATCH, MOVE, COPY#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [allows], Value: [OPTIONS, GET, HEAD, PUT, DELETE, MKCOL, PROPFIND, PROPPATCH, MOVE, COPY]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Cache-Namespace: 148#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-cache-namespace], Value: [148]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-XSS-Protection: 1#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-xss-protection], Value: [1]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Powered-By: DCSaaS#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-powered-by], Value: [DCSaaS]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Server: DCSaaS/httpd#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [server], Value: [DCSaaS/httpd]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Content-Type-Options: nosniff#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-content-type-options], Value: [nosniff]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Set-Cookie: fp=4220404054; Path=/; HttpOnly; Max-Age=315360000#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [set-cookie], Value: [fp=4220404054; Path=/; HttpOnly; Max-Age=315360000]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] #015
Jan 25 12:33:28 ubuntu-dev mount.davfs: End of headers.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running post_headers hooks
Jan 25 12:33:28 ubuntu-dev mount.davfs: [chunk] < 0#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Got chunk size: 0
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] #015
Jan 25 12:33:28 ubuntu-dev mount.davfs: End of headers.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running post_send hooks
Jan 25 12:33:28 ubuntu-dev mount.davfs: ah_post_send (#0), code is 200 (want 401), WWW-Authenticate is (none)
Jan 25 12:33:28 ubuntu-dev mount.davfs: Request ends, status 200 class 2xx, error line:#012200 OK
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running destroy hooks.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Request ends.
Jan 25 12:33:28 ubuntu-dev mount.davfs: ah_create, for WWW-Authenticate
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running pre_send hooks
Jan 25 12:33:28 ubuntu-dev mount.davfs: Sending request headers:#012PROPFIND /webapi/webdav/ HTTP/1.1#015#012User-Agent: davfs2/1.5.5 neon/0.30.2#015#012Connection: TE#015#012TE: trailers#015#012Host: devshop-******.shoparena.pl#015#012Depth: 1#015#012Content-Length: 257#015#012Content-Type: application/xml#015#012#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Sending request-line and headers:
Jan 25 12:33:28 ubuntu-dev mount.davfs: Sending request body:
Jan 25 12:33:28 ubuntu-dev mount.davfs: Body block (257 bytes):#012[<?xml version="1.0" encoding="utf-8"?>#012<propfind xmlns="DAV:"><prop>#012<resourcetype xmlns="DAV:"/>#012<getcontentlength xmlns="DAV:"/>#012<getetag xmlns="DAV:"/>#012<getlastmodified xmlns="DAV:"/>#012<executable xmlns="http://apache.org/dav/props/"/>#012</prop></propfind>#012]
Jan 25 12:33:28 ubuntu-dev mount.davfs: Request sent; retry is 1.
Jan 25 12:33:28 ubuntu-dev mount.davfs: [status-line] < HTTP/1.1 401 Unauthorized#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Date: Sat, 25 Jan 2020 12:33:28 GMT#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [date], Value: [Sat, 25 Jan 2020 12:33:28 GMT]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Content-Type: text/html; charset=UTF-8#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [content-type], Value: [text/html; charset=UTF-8]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Transfer-Encoding: chunked#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [transfer-encoding], Value: [chunked]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Connection: keep-alive#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [connection], Value: [keep-alive]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Keep-Alive: timeout=20#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [keep-alive], Value: [timeout=20]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Www-Authenticate: Basic realm="WebDAV Server 6.6.6"#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [www-authenticate], Value: [Basic realm="WebDAV Server 6.6.6"]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Www-Authenticate: Digest realm="WebDAV Server 6.6.6", domain="devshop-******.shoparena.pl", nonce="c66bd42f37c902e4c2cd14d532d285a1", opaque="d75db7b160fe72d1346d2bd1f67bfd10", algorithm="MD5", qop="auth"#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [www-authenticate], Value: [Digest realm="WebDAV Server 6.6.6", domain="devshop-******.shoparena.pl", nonce="c66bd42f37c902e4c2cd14d532d285a1", opaque="d75db7b160fe72d1346d2bd1f67bfd10", algorithm="MD5", qop="auth"]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Dav: 1#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [dav], Value: [1]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Cache-Namespace: 148#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-cache-namespace], Value: [148]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-XSS-Protection: 1#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-xss-protection], Value: [1]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Powered-By: DCSaaS#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-powered-by], Value: [DCSaaS]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Server: DCSaaS/httpd#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [server], Value: [DCSaaS/httpd]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Content-Type-Options: nosniff#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-content-type-options], Value: [nosniff]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Set-Cookie: fp=1065983822; Path=/; HttpOnly; Max-Age=315360000#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [set-cookie], Value: [fp=1065983822; Path=/; HttpOnly; Max-Age=315360000]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] #015
Jan 25 12:33:28 ubuntu-dev mount.davfs: End of headers.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running post_headers hooks
Jan 25 12:33:28 ubuntu-dev mount.davfs: [chunk] < 0#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Got chunk size: 0
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] #015
Jan 25 12:33:28 ubuntu-dev mount.davfs: End of headers.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running post_send hooks
Jan 25 12:33:28 ubuntu-dev mount.davfs: ah_post_send (#0), code is 401 (want 401), WWW-Authenticate is Basic realm="WebDAV Server 6.6.6", Digest realm="WebDAV Server 6.6.6", domain="devshop-******.shoparena.pl", nonce="c66bd42f37c902e4c2cd14d532d285a1", opaque="d75db7b160fe72d1346d2bd1f67bfd10", algorithm="MD5", qop="auth"
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Got challenge (code 401).
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Got 'Basic' challenge.
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Got 'Digest' challenge.
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Trying Digest challenge...
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Using domain /devshop-******.shoparena.pl from devshop-******.shoparena.pl
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Got qop, using 2617-style.
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: H(A1) is [f4191e958585d980c418e87b51ebccfe]
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Accepting digest challenge.
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Accepted Digest challenge.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running pre_send hooks
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: Sending 'Digest' response.
Jan 25 12:33:28 ubuntu-dev mount.davfs: auth: '/webapi/webdav/' is inside auth domain: 0.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Sending request headers:#012PROPFIND /webapi/webdav/ HTTP/1.1#015#012User-Agent: davfs2/1.5.5 neon/0.30.2#015#012Connection: TE#015#012TE: trailers#015#012Host: devshop-******.shoparena.pl#015#012Depth: 1#015#012Content-Length: 257#015#012Content-Type: application/xml#015#012#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Sending request-line and headers:
Jan 25 12:33:28 ubuntu-dev mount.davfs: Sending request body:
Jan 25 12:33:28 ubuntu-dev mount.davfs: Body block (257 bytes):#012[<?xml version="1.0" encoding="utf-8"?>#012<propfind xmlns="DAV:"><prop>#012<resourcetype xmlns="DAV:"/>#012<getcontentlength xmlns="DAV:"/>#012<getetag xmlns="DAV:"/>#012<getlastmodified xmlns="DAV:"/>#012<executable xmlns="http://apache.org/dav/props/"/>#012</prop></propfind>#012]
Jan 25 12:33:28 ubuntu-dev mount.davfs: Request sent; retry is 1.
Jan 25 12:33:28 ubuntu-dev mount.davfs: [status-line] < HTTP/1.1 401 Unauthorized#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Date: Sat, 25 Jan 2020 12:33:29 GMT#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [date], Value: [Sat, 25 Jan 2020 12:33:29 GMT]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Content-Type: text/html; charset=UTF-8#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [content-type], Value: [text/html; charset=UTF-8]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Transfer-Encoding: chunked#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [transfer-encoding], Value: [chunked]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Connection: keep-alive#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [connection], Value: [keep-alive]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Keep-Alive: timeout=20#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [keep-alive], Value: [timeout=20]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Www-Authenticate: Basic realm="WebDAV Server 6.6.6"#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [www-authenticate], Value: [Basic realm="WebDAV Server 6.6.6"]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Www-Authenticate: Digest realm="WebDAV Server 6.6.6", domain="devshop-******.shoparena.pl", nonce="c66bd42f37c902e4c2cd14d532d285a1", opaque="d75db7b160fe72d1346d2bd1f67bfd10", algorithm="MD5", qop="auth"#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [www-authenticate], Value: [Digest realm="WebDAV Server 6.6.6", domain="devshop-******.shoparena.pl", nonce="c66bd42f37c902e4c2cd14d532d285a1", opaque="d75db7b160fe72d1346d2bd1f67bfd10", algorithm="MD5", qop="auth"]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Dav: 1#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [dav], Value: [1]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Cache-Namespace: 148#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-cache-namespace], Value: [148]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-XSS-Protection: 1#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-xss-protection], Value: [1]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Powered-By: DCSaaS#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-powered-by], Value: [DCSaaS]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Server: DCSaaS/httpd#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [server], Value: [DCSaaS/httpd]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] X-Content-Type-Options: nosniff#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [x-content-type-options], Value: [nosniff]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] Set-Cookie: fp=1381817215; Path=/; HttpOnly; Max-Age=315360000#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Header Name: [set-cookie], Value: [fp=1381817215; Path=/; HttpOnly; Max-Age=315360000]
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] #015
Jan 25 12:33:28 ubuntu-dev mount.davfs: End of headers.
Jan 25 12:33:28 ubuntu-dev mount.davfs: Running post_headers hooks
Jan 25 12:33:28 ubuntu-dev mount.davfs: [chunk] < 0#015
Jan 25 12:33:28 ubuntu-dev mount.davfs: Got chunk size: 0
Jan 25 12:33:28 ubuntu-dev mount.davfs: [hdr] #015
Jan 25 12:33:28 ubuntu-dev mount.davfs: End of headers.
davfs2.conf
dav_user root
dav_group root
kernel_fs fuse
buf_size 32
connect_timeout 30
read_timeout 30
retry 10
max_retry 300
dir_refresh 30
file_refresh 10
use_locks 0
follow_redirect 1
debug config
debug kernel
debug cache
debug http
debug xml
debug httpauth
debug locks
debug ssl
debug httpbody
debug most
There was a problem with how service owner was handling requests (he made his own modifications to WebDAV server).
I want to disable some logs (express:router) from express code which use pm2 to run.
Current logs are as follows
GMT express:router dispatching GET /healthcheck
10|consumer | Wed, 10 Oct 2018 19:40:04 GMT express:router query : /healthcheck
10|consumer | Wed, 10 Oct 2018 19:40:04 GMT express:router expressInit : /healthcheck
10|consumer | Wed, 10 Oct 2018 19:40:04 GMT express:router corsMiddleware : /healthcheck
10|consumer | Wed, 10 Oct 2018 19:40:04 GMT express:router jsonParser : /healthcheck
10|consumer | Wed, 10 Oct 2018 19:40:04 GMT body-parser:json skip empty body
10|consumer | Wed, 10 Oct 2018 19:40:04 GMT express:router urlencodedParser : /healthcheck
10|consumer | Wed, 10 Oct 2018 19:40:04 GMT body-parser:urlencoded skip empty body
I pass /dev/null to error_file or out_file to disable logs saving -
not works i can still see the logs
Run pm2 using command - pm2 start consumer -o "/dev/null" -e "/dev/null" - Not works.
I run it using DEBUG=express.* node index.js - not worked.
I manage to get it done by adding following environment var
process.env.DEBUG=false
I'm trying to add View Action to my emails. For tests I'm send email from grif#ecwid.com to grif#ecwid.com
Example
Return-Path: <grif#ecwid.com>
Received: from 172.17.10.84 ([87.251.133.106])
by mx.google.com with ESMTPSA id bj7sm8223219lbc.22.2014.06.06.01.11.43
for <grif#ecwid.com>
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Fri, 06 Jun 2014 01:11:44 -0700 (PDT)
Date: Fri, 06 Jun 2014 01:11:44 -0700 (PDT)
From: grif#ecwid.com
To: grif#ecwid.com
Message-ID: <1817181170.17.1402042304376.JavaMail.rinatgainullin#Rinats-MacBook-Pro-2.local>
Subject: =?UTF-8?B?0JTQvtCx0YDQviDQv9C+0LbQsNC70L7QstCw0YLRjCDQsiBFY3dpZCE=?=
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_15_1197020028.1402042304374"
------=_Part_15_1197020028.1402042304374
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
....
------=_Part_15_1197020028.1402042304374
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU=
TF-8">
<title>=D0=94=D0=BE=D0=B1=D1=80=D0=BE =D0=BF=D0=BE=D0=B6=D0=B0=D0=
=BB=D0=BE=D0=B2=D0=B0=D1=82=D1=8C =D0=B2 Ecwid!</title>
=09=09
<style type=3D"text/css">
.....
</style></head>
<body leftmargin=3D"0" marginwidth=3D"0" topmargin=3D"0" marginheight=
=3D"0" offset=3D"0" style=3D"margin: 0;padding: 0;background-color: #ffffff=
;">
....
<div itemscope itemtype=3D"http://schema.org/EmailMessage">
=09<div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/ViewAct=
ion">
=09=09<link itemprop=3D"url" href=3D"https://my.grif.ecwid.com:8443/cp/vali=
date?h=3D123&ownerid=3D0"/>
=09=09<meta itemprop=3D"name" content=3D"=D0=9F=D0=BE=D0=B4=D1=82=D0=B2=D0=
=B5=D1=80=D0=B4=D0=B8=D1=82=D1=8C e-mail"/>
=09</div>
</div>
....
</body>
</html>
------=_Part_15_1197020028.1402042304374--
But my inbox letter looks like this http://i.stack.imgur.com/GAcs7.png
What I should to do to test my schema? Is this feature testing has any restriction?
Update
When I send mail for myself there are no dkim headers, but when my friend send me mail from his acc dkim header is present
No dkim
Return-Path: <grif#ecwid.com>
Received: from test-gmail-actions-0.gen.ec.ecwid.com (ec2-174-129-131-52.compute-1.amazonaws.com. [174.129.131.52])
by mx.google.com with ESMTPSA id s2sm10439008qaj.36.2014.06.26.02.45.56
for <grif#ecwid.com>
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 26 Jun 2014 02:45:56 -0700 (PDT)
Date: Thu, 26 Jun 2014 02:45:56 -0700 (PDT)
From: Ecwid <grif#ecwid.com>
To: grif#ecwid.com
Message-ID: <22158846.2.1403775956083.JavaMail.root#test-gmail-actions-0>
Subject: =?UTF-8?B?0JTQvtCx0YDQviDQv9C+0LbQsNC70L7QstCw0YLRjCDQsiBFY3dpZCE=?=
MIME-Version: 1.0
Content-Type: multipart/alternative;
Dkim is present
Delivered-To: grif#ecwid.com
Received: by 10.229.14.202 with SMTP id h10csp5187qca; Thu, 26 Jun 2014 03:00:03 -0700 (PDT)
X-Received: by 10.140.96.38 with SMTP id j35mr18742954qge.5.1403776803018;Thu, 26 Jun 2014 03:00:03 -0700 (PDT)
Return-Path: <bender#ecwid.com>
Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [2607:f8b0:400d:c00::22a])
by mx.google.com with ESMTPS id e8si8539327qgf.40.2014.06.26.03.00.02
for <grif#ecwid.com>
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 26 Jun 2014 03:00:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of bender#ecwid.com designates 2607:f8b0:400d:c00::22a as permitted sender) client-ip=2607:f8b0:400d:c00::22a;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bender#ecwid.com designates 2607:f8b0:400d:c00::22a as permitted sender) smtp.mail=bender#ecwid.com;
dkim=pass header.i=#ecwid.com
Received: by mail-qa0-f42.google.com with SMTP id dc16so2614502qab.
for <grif#ecwid.com>; Thu, 26 Jun 2014 03:00:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;d=ecwid.com; s=google;
....
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
....
The email must be signed with DKIM/SPF, I don't see any of the relevant headers in your example.