Comments (4)
Hi @vvit
Did you called connect method of PubNub singleton?
Can you share piece of code which you are using to reproduce this issue and use case?
Best regards,
Sergey Mamontov
from objective-c.
During the initialisation phase I call connect block:
[PubNub setDelegate:self];
[PubNub setConfiguration:[PNConfiguration ...]];
[PubNub connectWithSuccessBlock:^(..) {
} errorBlock:^(..) {
}];
and get the error:
Domain=com.pubnub.pubnub; Code=102; Description="PubNub client connection failed"; Reason="Looks like the client lost it's net connection while trying to connect to the PubNub origin"; Fix suggestion="Ensure that all network configuration (including any proxy) is correct, and try again."; Associated object=(null)
After that I call [PubNub requestHistoryForChannel:...] which is causing a problem I described.
Is that a normal behaviour?
Thanks for the fast response.
from objective-c.
Well, it has been designed this way. Initial connection failure will stack further requests till internet connection restore (special case). If connection will go down after successful connection, it will report errors.
from objective-c.
All right, so I guess I need to check these conditions before making the
history request. Thanks for the info.
On 28 трав. 2014, at 18:21, Sergey [email protected] wrote:
Well, it has been designed this way. Initial connection failure will stack
further requests till internet connection restore (special case). If
connection will go down after successful connection, it will report errors.
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/65#issuecomment-44420937
.
from objective-c.
Related Issues (20)
- Crash using library : [__NSMallocBlock__ handleClientConnectionStateChange:]: unrecognized selector sent to instance 0x17044e460 HOT 3
- Decryption error HOT 1
- Can't disable logger HOT 6
- Crash: EXC_CRASH (SIGSEGV) SIGNAL 11 Segmentation fault: 11
- 3.6.2 Released!
- When is the mentioned update for aps / APNs handling going to come out? HOT 6
- PubNub Crashes upon subscription HOT 4
- 3.6.3 Released!
- Retrieve Channel History HOT 2
- TableLoad before Request History HOT 3
- Multiple channel subscriptions with different cipher, subscribe, and auth keys HOT 1
- Python - publishing to APNS HOT 1
- Has any one got this working with swift and cocoapods? HOT 2
- Several crashes in 3.7.10.4 HOT 6
- PNJSONSerialization replacing NSNull characters during serialization prevents proper deserialization HOT 1
- PNImports.h file not found HOT 10
- Can't update sdk from COcoa pods any more HOT 4
- Does character ":" (colon) has special meaning in the channel name? HOT 5
- Cannot use the library in an app extension. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objective-c.