请教霍炬大大关于PRESSone的网络服务问题



  • 最近想尝试下使用 PRESSone 的 node 的 SDK 来进行开发,本地跑官方的 demo 就显示网络超时,一次也没连接成功过,基本的开发都卡住了,没法进行下去。
    官方能不能尽快在国内部署下服务器,可以使广大的开发者流畅的先用起来。

    webAuthorizeUrl: https://beta.press.one/developer/apps/7483f699284b55eb585b229c0ccee1f46fb893a8/authorize
    错误: Error: connect ETIMEDOUT 54.39.124.116:443.
    


  • 收到,我们在着手处理这个问题了。



  • 这种文本提示没必要截图吧……复制粘贴文本不好么。看了一下请求的url,应该是samples里面的userAuth.js ,我刚本地跑了一下没遇到问题。

    希望是测试服务器本身的网络波动,而不是GFW已经盯上press.one的域名

    webAuthorizeUrl: https://beta.press.one/developer/apps/7483f699284b55eb585b229c0ccee1f46fb893a8/authorize
    request url: https://beta.press.one/api/v2/apps/7483f699284b55eb585b229c0ccee1f46fb893a8/authorize
    response 200 '{"code":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NTM2ODI1ODksImp0aSI6Ijc0NjhhNmI2LWU1ZjUtNGVmOS04MDQwLWQ0MDAxYWI0MDNjNiIsImRhdGEiOnsidXNlckFkZHJlc3MiOiI3NThlYTI2MDE2OTdmYmQzYmE2ZWI2Nzc0ZWQ3MGI2YzRjZGIwZWY5IiwiYXBwQWRkcmVzcyI6Ijc0ODNmNjk5Mjg0YjU1ZWI1ODViMjI5YzBjY2VlMWY0NmZiODkzYTgiLCJ0eXBlIjoiZW1haWwiLCJhdXRoQWRkcmVzcyI6ImI0MDFkZjVlMjM1NmEwYjU2NTJkNWUxNzJlZmQ4ZWJlYTM0MDZjZjIifSwicHJvdmlkZXIiOiJwcmVzc29uZSIsImV4cCI6MTU1Mzk0MTc4OX0.0nDr_Y8785HYfs0kNFnr0tqKVLnfeNkIrZYgLZw7YVU","redirectUrl":"https://press.one/auth"}' '{"server":"nginx","date":"Wed, 27 Mar 2019 10:29:49 GMT","content-type":"application/json; charset=utf-8","content-length":"535","connection":"close","vary":"Origin","strict-transport-security":"max-age=15768000;","referrer-policy":"same-origin","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","x-download-options":"noopen"}'
    eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NTM2ODI1ODksImp0aSI6Ijc0NjhhNmI2LWU1ZjUtNGVmOS04MDQwLWQ0MDAxYWI0MDNjNiIsImRhdGEiOnsidXNlckFkZHJlc3MiOiI3NThlYTI2MDE2OTdmYmQzYmE2ZWI2Nzc0ZWQ3MGI2YzRjZGIwZWY5IiwiYXBwQWRkcmVzcyI6Ijc0ODNmNjk5Mjg0YjU1ZWI1ODViMjI5YzBjY2VlMWY0NmZiODkzYTgiLCJ0eXBlIjoiZW1haWwiLCJhdXRoQWRkcmVzcyI6ImI0MDFkZjVlMjM1NmEwYjU2NTJkNWUxNzJlZmQ4ZWJlYTM0MDZjZjIifSwicHJvdmlkZXIiOiJwcmVzc29uZSIsImV4cCI6MTU1Mzk0MTc4OX0.0nDr_Y8785HYfs0kNFnr0tqKVLnfeNkIrZYgLZw7YVU
    request url: https://beta.press.one/api/v2/apps/7483f699284b55eb585b229c0ccee1f46fb893a8/authenticate
    response 200 '{"appAuthentication":{"userAddress":"758ea2601697fbd3ba6eb6774ed70b6c4cdb0ef9","status":"VERIFIED","createdAt":null,"updatedAt":null,"signature":"6dbd74e107c0d3a67ae96a18d06741408aef4ea130044ae8c624d5aa7a2fafe7e0ee5bded050dd1cab7f856c6043f6a3e5041d25723c6b4b93da86120cb3d9f91","appAddress":"7483f699284b55eb585b229c0ccee1f46fb893a8","authAddress":"19e5318c9e261dd3849543fc2b2c57c7e9b79ae1"},"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NTM2ODI1OTMsImp0aSI6IjFhYzc0ZTE4LTA5NTctNDYzNi05NjYwLTlmYjNjODg2NDhkNiIsImRhdGEiOnsiYXV0aEFkZHJlc3MiOiIxOWU1MzE4YzllMjYxZGQzODQ5NTQzZmMyYjJjNTdjN2U5Yjc5YWUxIn0sInByb3ZpZGVyIjoiZGFwcCJ9.9KXqoLtQp28B9Vc8dHFYkINtRIczzDCSyjIrJL-DTrM"}' '{"server":"nginx","date":"Wed, 27 Mar 2019 10:29:53 GMT","content-type":"application/json; charset=utf-8","content-length":"733","connection":"close","vary":"Origin","strict-transport-security":"max-age=15768000;","referrer-policy":"same-origin","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","x-download-options":"noopen"}'
    token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NTM2ODI1OTMsImp0aSI6IjFhYzc0ZTE4LTA5NTctNDYzNi05NjYwLTlmYjNjODg2NDhkNiIsImRhdGEiOnsiYXV0aEFkZHJlc3MiOiIxOWU1MzE4YzllMjYxZGQzODQ5NTQzZmMyYjJjNTdjN2U5Yjc5YWUxIn0sInByb3ZpZGVyIjoiZGFwcCJ9.9KXqoLtQp28B9Vc8dHFYkINtRIczzDCSyjIrJL-DTrM
    authAddress: 19e5318c9e261dd3849543fc2b2c57c7e9b79ae1
    request url: https://beta.press.one/api/v2/files
    response 200 '{"cache":{"msghash":"f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a","title":"xxx","description":"1553682577415","originUrl":"","cacheUrl":"https://storage.googleapis.com/pressone/f8/5c/f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a.md","mimeType":"text/markdown","createdAt":"2019-03-27T10:29:58.000Z","source":"","projectId":null,"rewardAmount":"0.000000000000000000000000000000","rewardCount":0,"category":"","updatedAt":"2019-03-27T10:29:58.000Z","rId":"db2ddb2e456bb4c510a57a4eb56ab5b5e6bcea7ed64de23f9e1f92b42e1961e4","address":"19e5318c9e261dd3849543fc2b2c57c7e9b79ae1"},"block":{"id":"db2ddb2e456bb4c510a57a4eb56ab5b5e6bcea7ed64de23f9e1f92b42e1961e4","type":"PUBLISH:2","user_address":"19e5318c9e261dd3849543fc2b2c57c7e9b79ae1","hash":"73e3d8beca10d17549f41fd88f1f349db648319d59ff8463ab3c4aed55777541","signature":"ac1d667477270318376b994be76ebe6e5423fcb32e24f6f66abe6310c9e4c237264e625e5b9f94181ca3d8b22f7a7a1edd8380fa75b640c9cfb1168fe95f674b1","meta":"{\\"uuid\\":\\"xxxx\\",\\"uris\\":[\\"p1s://f8/5c/f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a.md\\"],\\"mime\\":\\"text/markdown;charset=UTF-8\\"}","data":"{\\"file_hash\\":\\"f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a\\"}","createdAt":"2019-03-27T10:29:58.337Z"}}' '{"server":"nginx","date":"Wed, 27 Mar 2019 10:29:58 GMT","content-type":"application/json; charset=utf-8","content-length":"1442","connection":"close","vary":"Origin","strict-transport-security":"max-age=15768000;","referrer-policy":"same-origin","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","x-download-options":"noopen"}'
    fileHash: f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a
    fileRId: db2ddb2e456bb4c510a57a4eb56ab5b5e6bcea7ed64de23f9e1f92b42e1961e4
    request url: https://beta.press.one/api/v2/contracts
    response 200 '{"contract":{"rId":"213dcc3441e85f8fb20f0511c275455ec1f52d492e7e31bbd2f40d928c160c04"}}' '{"server":"nginx","date":"Wed, 27 Mar 2019 10:30:01 GMT","content-type":"application/json; charset=utf-8","content-length":"101","connection":"close","vary":"Origin","strict-transport-security":"max-age=15768000;","referrer-policy":"same-origin","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","x-download-options":"noopen"}'
    contractRId: 213dcc3441e85f8fb20f0511c275455ec1f52d492e7e31bbd2f40d928c160c04
    { privateKey: undefined,
      token:
       'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NTM2ODI1OTMsImp0aSI6IjFhYzc0ZTE4LTA5NTctNDYzNi05NjYwLTlmYjNjODg2NDhkNiIsImRhdGEiOnsiYXV0aEFkZHJlc3MiOiIxOWU1MzE4YzllMjYxZGQzODQ5NTQzZmMyYjJjNTdjN2U5Yjc5YWUxIn0sInByb3ZpZGVyIjoiZGFwcCJ9.9KXqoLtQp28B9Vc8dHFYkINtRIczzDCSyjIrJL-DTrM' }
    eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NTM2ODI1OTMsImp0aSI6IjFhYzc0ZTE4LTA5NTctNDYzNi05NjYwLTlmYjNjODg2NDhkNiIsImRhdGEiOnsiYXV0aEFkZHJlc3MiOiIxOWU1MzE4YzllMjYxZGQzODQ5NTQzZmMyYjJjNTdjN2U5Yjc5YWUxIn0sInByb3ZpZGVyIjoiZGFwcCJ9.9KXqoLtQp28B9Vc8dHFYkINtRIczzDCSyjIrJL-DTrM
    request url: https://beta.press.one/api/v2/contracts/213dcc3441e85f8fb20f0511c275455ec1f52d492e7e31bbd2f40d928c160c04/bind
    response 200 '{"rId":"7f8c24728a4aa8c3e74a204c9d176177c192f5b655dfb394e3fead673863c211","type":"RECEIVER","uuid":"da89ebe6-2187-4aa1-8b1a-f797b0f01c43","address":"19e5318c9e261dd3849543fc2b2c57c7e9b79ae1","fileMsghash":"f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a","file":"db2ddb2e456bb4c510a57a4eb56ab5b5e6bcea7ed64de23f9e1f92b42e1961e4","contract":"213dcc3441e85f8fb20f0511c275455ec1f52d492e7e31bbd2f40d928c160c04","receiver":"19e5318c9e261dd3849543fc2b2c57c7e9b79ae1","version":1}' '{"server":"nginx","date":"Wed, 27 Mar 2019 10:30:03 GMT","content-type":"application/json; charset=utf-8","content-length":"527","connection":"close","vary":"Origin","strict-transport-security":"max-age=15768000;","referrer-policy":"same-origin","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","x-download-options":"noopen"}'
    { rId:
       '7f8c24728a4aa8c3e74a204c9d176177c192f5b655dfb394e3fead673863c211',
      type: 'RECEIVER',
      uuid: 'da89ebe6-2187-4aa1-8b1a-f797b0f01c43',
      address: '19e5318c9e261dd3849543fc2b2c57c7e9b79ae1',
      fileMsghash:
       'f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a',
      file:
       'db2ddb2e456bb4c510a57a4eb56ab5b5e6bcea7ed64de23f9e1f92b42e1961e4',
      contract:
       '213dcc3441e85f8fb20f0511c275455ec1f52d492e7e31bbd2f40d928c160c04',
      receiver: '19e5318c9e261dd3849543fc2b2c57c7e9b79ae1',
      version: 1 }
    undefined
    request url: https://beta.press.one/api/v2/orders
    response 200 '{"type":"SENDER","file":"db2ddb2e456bb4c510a57a4eb56ab5b5e6bcea7ed64de23f9e1f92b42e1961e4","fileMsghash":"f85cb641b5373aa4bc2d145ee79f631650cff990e20c3375a96b94352fcd225a","contract":"213dcc3441e85f8fb20f0511c275455ec1f52d492e7e31bbd2f40d928c160c04","address":"27d64b3524ef5679c4d7c3493088c70478a700db","receiver":"19e5318c9e261dd3849543fc2b2c57c7e9b79ae1","license":"usage1","price":"0.001","currency":"CNB","sender":"27d64b3524ef5679c4d7c3493088c70478a700db","version":1,"traceId":"2cf589b3-fd72-4e6e-b90b-afb7d79d1784","paymentSnapshotId":"79e7669e-cca0-40a3-bb03-038c9ff399fb","senderWalletId":"5702c5ba-8dde-363a-8d48-d146ab55a748","receiverWalletId":"23afa9f5-6a73-3856-b11c-68b0ee5dad1e"}' '{"server":"nginx","date":"Wed, 27 Mar 2019 10:30:06 GMT","content-type":"application/json; charset=utf-8","content-length":"756","connection":"close","vary":"Origin","strict-transport-security":"max-age=15768000;","referrer-policy":"same-origin","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","x-download-options":"noopen"}'
    
    


  • This post is deleted!