New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync failed: please check your network connection. #46
Comments
@CatTail @aaronice Can you paste the log in The renderLangTags () {
let gistTags = this.props.gistTags
let activeGistTag = this.props.activeGistTag
let langTagList = []
Object.keys(gistTags)
.filter(tag => {
return tag.startsWith('lang@')
})
.sort()
.forEach(prefixedLang => {
langTagList.push(
<div key={ prefixedLang }>
<a className={ prefixedLang === activeGistTag ? 'active-gist-tag' : 'gist-tag' }
onClick={ this.handleClicked.bind(this, prefixedLang) }>
{ '#' + Resolved(prefixedLang) }
</a>
</div>
)
})
return langTagList
} // renderLangTags() It looks like the code complains about the initial value of a redux state export default function (state = null, action) {
switch (action.type) {
case UPDATE_GIST_TAGS:
return action.payload
case LOGOUT_USER_SESSION:
return null
default:
}
return state
} https://github.com/hackjutsu/Lepton/blob/master/app/reducers/reducer_gist_tags.js This might be fixed by simply replacing the initial value from |
@hackjutsu log result are
|
@CatTail Got it. This is caused by a export function descriptionParser (rawDescription = 'AWESOME GIST') {
const regexForTitle = rawDescription.match(/\[.*\]/)
const rawTitle = regexForTitle && regexForTitle[0] || ''
const title = (rawTitle.length > 0) && rawTitle.substring(1, regexForTitle[0].length - 1) || ''
const regextForCustomTags = rawDescription.match(/#tags:.*$/)
const customTags = regextForCustomTags && regextForCustomTags[0] || ''
const description = rawDescription.substring(rawTitle.length, rawDescription.length - customTags.length)
return { title, description, customTags }
} I thought the es6 initial value in the argument list will handle the case when the arg is
Good lesson learned. I'll fix it soon |
Should be fixed:6af171e Please have a test: https://github.com/hackjutsu/Lepton/releases/tag/v1.0.0-beta.4 |
Issue still is happening to me on version 1.5.0 on macos, unable to login and use app. |
Hi I'm on 1.5.0 on macos 10.13.2 and am getting the "Sync failed message". The dev console does not show any message at all. Lepton was working ok until I added some gists with a |
@hansjons Try delete |
@hackjutsu I tried both and can confirm that both methods worked for me. Cool app by the way and thanks for the prompt reply:-) |
I'm seeing this issue on Ubuntu 18.04.1 LTS on my desktop. |
Can confirm same issue still persist in Ubuntu 18.04 LTS |
I use Version 1.0.0-beta.3 (1.0.0-beta.3), and CAN connect to Github gist, but this message keep coming, DevTool console told me
The text was updated successfully, but these errors were encountered: