erikvillegas / itunes-connect-slack Goto Github PK
View Code? Open in Web Editor NEWPosts app update info from iTunes Connect into Slack
Posts app update info from iTunes Connect into Slack
Fetching latest app status...
There was a problem fetching the status of the app!
get-app-status.rb:6:in getVersionInfo': undefined method
edit_version' for nil:NilClass (NoMethodError)
from get-app-status.rb:48:in block in getAppVersionFrom' from get-app-status.rb:47:in
each'
from get-app-status.rb:47:in getAppVersionFrom' from get-app-status.rb:82:in
block in
each' from get-app-status.rb:78:in
'
Get this error after running the node poll-itc.js
. I'm not a ruby expert but it looks like whatever this block is supposed to be doing in get-app-status.rb
is not doing it.
def getVersionInfo(app)
editVersionInfo = app.edit_version
liveVersionInfo = app.live_version
hello
i have an error:
Fetching latest app status...
util.js:1084
throw new errors.TypeError(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "last argument" argument must be of type function
at implementation (util.js:1084:13)
at WebClient.apiCall (/root/itunes-connect-slack/node_modules/@slack/client/dist/WebClient.js:384:47)
at Object.postToSlack [as slack] (/root/itunes-connect-slack/post-update.js:21:14)
at /root/itunes-connect-slack/poll-itc.js:22:15
at ChildProcess.exithandler (child_process.js:267:7)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
Hi, I'm using this project to get app status updates through our circleCI setup, I changes the polling to just fetch once and have it running every X minutes through CI (circle). I'd like to submit a PR but wanted to know if you'd be open to this change so we can continue using this project instead of duplicating it.
The changes would be:
Traceback (most recent call last):
15: from get-app-status.rb:15:in `<main>'
14: from /var/lib/gems/2.5.0/gems/fastlane-2.115.0/spaceship/lib/spaceship/tunes/spaceship.rb:24:in `login'
13: from /var/lib/gems/2.5.0/gems/fastlane-2.115.0/spaceship/lib/spaceship/client.rb:346:in `login'
12: from /var/lib/gems/2.5.0/gems/fastlane-2.115.0/spaceship/lib/spaceship/client.rb:384:in `login'
11: from /var/lib/gems/2.5.0/gems/fastlane-2.115.0/spaceship/lib/spaceship/client.rb:753:in `do_login'
10: from /var/lib/gems/2.5.0/gems/fastlane-2.115.0/spaceship/lib/spaceship/tunes/tunes_client.rb:127:in `send_login_request'
9: from /var/lib/gems/2.5.0/gems/fastlane-2.115.0/spaceship/lib/spaceship/client.rb:411:in `send_shared_login_request'
8: from /var/lib/gems/2.5.0/gems/fastlane-2.115.0/spaceship/lib/spaceship/client.rb:567:in `load_session_from_file'
7: from /var/lib/gems/2.5.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in `load'
6: from /var/lib/gems/2.5.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in `open'
5: from /var/lib/gems/2.5.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:325:in `block in load'
4: from /var/lib/gems/2.5.0/gems/http-cookie-1.0.3/lib/http/cookie_jar/yaml_saver.rb:24:in `load'
3: from /var/lib/gems/2.5.0/gems/psych-3.1.0/lib/psych.rb:277:in `load'
2: from /var/lib/gems/2.5.0/gems/psych-3.1.0/lib/psych.rb:390:in `parse'
1: from /var/lib/gems/2.5.0/gems/psych-3.1.0/lib/psych.rb:456:in `parse_stream'
/var/lib/gems/2.5.0/gems/psych-3.1.0/lib/psych.rb:456:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 110 column 1 (Psych::SyntaxError)
ubuntu@tegra-ubuntu:/mnt/HDD/itunes-connect-slack$ ```
Should be var elapsedHours = moment().diff(moment(submissionStartDate), 'hours')
instead.
node poll-itc.js
Fetching latest app status...
There was a problem fetching the status of the app!
/Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- spaceship (LoadError) from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:54:in
require'
from get-app-status.rb:1:in `
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.