Comments (7)
Hum.. Have you the log of the request (server side) ?
from algoliasearch-client-swift.
Yes, here it is:
Host: ***********-dsn.algolia.net
Content-Type: application/json
Accept-Encoding: gzip, deflate
Connection: keep-alive
X-Algolia-API-Key: bd8*************************************************************
X-Algolia-TagFilters: 55e5******************
Accept: */*
User-Agent: Algolia for Swift 1.4.2
X-Algolia-Application-Id: ************
Content-Length: 23
Accept-Language: en-us
It seems the exact same key + same tagFilters (except used with X-Algolia-QueryParameters) is working in JavaScript.
from algoliasearch-client-swift.
Are there any special characters in the TagFilters? It's maybe an encoding error.
from algoliasearch-client-swift.
No, seems OK :/
from algoliasearch-client-swift.
Does it work if you use X-Algolia-QueryParameters instead of X-Algolia-TagFilters?
client.setExtraHeader("tagFilters=xxxxx", forKey: "X-Algolia-QueryParameters")
from algoliasearch-client-swift.
Not with the swift2 branch.
Here's my code:
let client = AlgoliaSearch.Client(appID: "xxx", apiKey: "xxx")
client.setExtraHeader("tagFilters=xxx", forKey: "X-Algolia-QueryParameters")
let index = client.getIndex("xxx")
index.search(Query(query:"kate"), block:{result, error in
print(result, error)
})
And the output:
nil Optional(Error Domain=Invalid Application-ID or API key Code=403 "(null)")
The exact same code works on master.
from algoliasearch-client-swift.
Maybe a manifestation of #27.
from algoliasearch-client-swift.
Related Issues (20)
- SearchClient.multipleQueries() does not return queryID in SearchResponse objects HOT 1
- feat(query): missing enableReRanking field
- Facet values order is not preserved HOT 1
- Algolia's use of custom operators clashes with custom operators defined in applications that consume this library HOT 3
- Error 400 when Around Precision property is assigned HOT 4
- Error 494 Header Too Large with some API Keys HOT 4
- Crash - AlgoliaSearchClient: protocol witness for Decodable.init(from:) in conformance JSON + 20 HOT 3
- Issue with query string containing & char HOT 1
- Naming clash with Swift's Task HOT 4
- Facet values with certain characters don't work HOT 2
- Client side error handling
- index.getObject() does not work with full Shopify ID
- refactor `extension URLSession: HTTPRequester`
- Reporting a vulnerability
- ThreadSanitizer: data race
- Dependency Dashboard
- Match JS library - Fetch Recommendations Using an Array of Object ID's
- Apple Privacy Manifest File HOT 5
- 8.20.0 upgrade prevents project from building HOT 4
- SearchConfiguration.logLevel has no effect
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 algoliasearch-client-swift.