Git Product home page Git Product logo

axios-docs's Introduction

Axios Website

Netlify Status Contributor Covenant

The documentation page was built using inert static site generator. It works like this: Inside the root folder, there are some configuration, templates, styles, and, most importantly, in the posts folder, multiple markdown files containing the documentation.

To compile the documentation page, one must first install the inert CLI:

npm i -g inert-ssg # yarn global add inert-ssg

Now, open a terminal and run the following command:

inert build

Inert will convert the markdown files into HTML, insert them into the templates, compile the SCSS styles and write the output into the public directory.

This website was generously created by @codemaster138

axios-docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axios-docs's Issues

https://axios-http.com/ is down

Describe the bug
The Axios website is down.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://axios-http.com/
  2. Notice that the page is not loading

Expected behavior
Console throw NS_ERROR_UNKNOWN_HOST

Screenshots
obraz

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Firefox 122.0, Edge 121.0.2277.83

Plans or projects for the axios docs?

Hi everyone, I spent some of my free time creating a documentation website with docusaurus for axios which I still have to publish and I'm about to buy a domain.
So in order to understand if you're going to do the same, I'd like to ask you, what are your plans? Do you have something like that in mind?

Thanks

German Language Translation improvement

Ive read the documentation and latest Pull requests for the german Documentation and ive still seen some incorrect or not entirely accurate Translations

Solutions
re work the german language javascript file with some native speakers

Describe alternatives you've considered
Google Translate or Translators arent good enough especially with translating single words
Additional context
As a native speaker i'd love to contribiute to this Project.

Accessibility

Describe the bug
I noticed a few accessibility issues while translating the docs to French (#63). They’re clearly not critical, but they’re still issues.

Here’s a list:

  • There are a few jumps in heading levels, which is not very assistive technology-friendly. Example: https://axios-http.com/docs/urlencoded
  • Related, I’m not 100% sure about this but I think having several consecutive headings without content in-between is an anti-pattern (a user using assistive technology would jump to the heading and expect there to be content). Example: https://axios-http.com/docs/api_intro
  • From what I’ve seen, all clickable elements are keyboard-focusable, which is good, but the focus indicator is not always very visible, when there is any. At least on Firefox.
  • The > text here Markdown blocks should probably translate to <aside> elements instead of <blockquote> because they are never used to indicate citations and aside is more semantic in this context.
  • The text contrast is not WCAG-compliant for a lot of elements, though some of them seem ok to me in reality (the WCAG color contrast algorithm is not perfect (yet)).

Some sponsor logos are grayed out while others are not

Is your feature request related to a problem? Please describe.
On the Axios website homepage, there is a number of sponsor logos are grayed out when they are not hovered over. You can see them when you click on the right arrow to go to the end of the sponsor list. It might be a good idea to add that hover transition on all the sponsors to keep the design aligned.

Describe the solution you'd like
All the sponsor logos have a hover transition effect.

Describe alternatives you've considered
Removing the hover effect from all the sponsor logos.

Additional context
when not hovered:
homepage-sponsors
when hovered:
image

Renaming variables to respected translated languages

Is your feature request related to a problem? Please describe.

I was looking at the documentation in various languages, then noticed the constant use of English variable names as opposed to their translated names. This happens especially within callback functions where the parameters are consistently named "response" or "error".

Describe the solution you'd like

It would greatly benefit non-English speakers who are learning or referencing the documentation if these variables were translated to their respective languages.

Describe alternatives you've considered

Just renaming some variables.
Spanish example: .then(function (response)) ---> .then (function (respuesta))

Additional context

Screenshot 2023-07-01 at 6 32 59 PM

Setup CI process

We need to setup the CI process to have this deploying to Netlify automatically after a merge has been made

Italian Localisation

Is your feature request related to a problem? Please describe.
Hi,
I've noticed there is no Italian localisation for the docs, and I couldn't find evidence of anybody else working on it, so I would like to start contributing. Is it possible to assign myself this, so that there is no risk of duplicating work?

Describe the solution you'd like
I will start working on it, so that ,gradually, all the documentation will be localised.

https://axios-http.com/ is down

Describe the bug
Website seems to be waay down.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://axios-http.com/'
  2. Witness nothing '....'

Expected behavior
A clear and concise description of what you expected to happen.

  1. See website

Screenshots
image

Desktop (please complete the following information):

  • OS: Debian 10, android as well;
  • Browser both firefox and brave

Show logos of bronze sponsors or better from opencollective

Is your feature request related to a problem? Please describe.
The Axios OpenCollective states that backers with a contribution bronze or greater get their logo on the Axios Website. I was recently contacted by one of Axios' bronze backers about the fact that their logo is currently not on the site even though they have submitted a bronze sponsorship.

Describe the solution you'd like
The OpenCollective API allows including sponsor's logo into the website quite easily (https://api.opencollective.com/graphql/v2).

Describe alternatives you've considered
/

Additional context
This should be fairly simple, so I'll try to implement it myself as quickly as possible.

Transition Axios readme to these docs

We will need to find a way to transition the old Axios docs into these new docs & website. There are a number of links that will need to be updated throughout some files, we will also need to update canned prompts throughout the main repo.

Desktop View: Adjust Navigation Bar to Prevent Overlapping with the Heading Lines.

Summary

Description:
In the desktop view of the Axios website, the 'Heading' located below the navigation bar is partially obscured by the shadow of the navigation bar. This results in some lines of the 'Heading' being visually obstructed.

Axios.mp4

Steps to Reproduce

  1. Visit the Axios website in desktop view.
  2. Observe the positioning of the 'Heading lines' in relation to the navigation bar.

Expected Behavior

The 'Heading' lines should be fully visible and not obscured by the navigation bar shadow in the desktop view.

Suggested Solution

Adjust the styling or positioning of the navigation bar shadow to prevent overlapping with the content of the `Heading' lines in the desktop view.

Additional Information

  • Browser: Chrome
  • OS. Windows

Note:

I am interested in working on this issue and would appreciate it if it could be assigned to me. I am willing to contribute to resolving this matter.

Axios in React return error CORS with basic auth

I create react app and i have get data from webservices prestashop 1.7

import axios from 'axios';
import logo from './logo.svg';
import './App.css';


function App() {


  const options = {
    method: 'GET',
    url: 'https://woxxxed.itxcxxy.agency/api/products/6',
    params: {output_format: 'JSON'},
    headers: {Authorization: 'Basic XXXXXXXXXXXXXXNVNzlXSlNYNlU4OVRNWVo6'}
  };
  
  axios.request(options).then(function (response) {
    console.log(response.data);
  }).catch(function (error) {
    console.error(error);
  });

  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
    </div>
  );
}

export default App;

image

I have result error CORS

In postman all is good
image

rapid good
image

Why this axios not working in react? Why my code is bad?

Wrong spelling

In the main page of https://axios-http.com, the spelling of interface is interfeace
It is only a small mistake in the spelling

problem with axios.defaults.data

in version 0.17 I could use something like this to send the same data in all queries:

axios.defaults.data = { name: 'jean'}

But now in version 0.19.2 it doesn't work and I'm doing the same configuration

Link to lib/default.js is broken in config defaults page

Describe the bug
In this page, there is a link referring to the Axios repository. But the link results in 404 as the file is not on the main branch

To Reproduce
Steps to reproduce the behavior:

  1. Go to this page
  2. Under config order of precedence
  3. Click lib/defaults.js
  4. See the error

Expected behavior
The page must be displayed

Desktop (please complete the following information):

  • OS: Mac
  • Browser: Chrome
  • Version: 104

GitHub Action for inert build

I think it would be a good idea to add a github action to compile the site so that contributors don‘t have to download inert just to fix a type.

I have set this up before, and it‘s actually pretty easy, but if I remember correctly it can get a bit hairy to configure the environment for i18n, so I think it‘s best if I take care of this.

I will start working on a pull request ASAP, and I should be able to submit it by this evening.

Error Handling

Describe the bug
It is not really a bug and not very necessary. But while Error handling here in the code while creating a directory, It will be better to throw the error message if the directory was failed to create.

To Reproduce
Steps to reproduce the behavior:

  1. Go to scripts folder
  2. Click on updateData.js
  3. Scroll down to line 23.
  4. There while catching the error, it would be better to display the error message if the directory was failed to create.

Expected behavior
After adding my piece of code, I expect the error message to display if there is a failure to create directory. Because throwing an error could be a good practice but exceptional.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Brave
  • Version 1.58

Smartphone (please complete the following information):

  • Device: Poco M4 Pro
  • OS: MIUI
  • Browser: Chrome
  • Version: 13.0.5

Additional context
Add any other context about the problem here.

Sidebar is not scrollable.

Describe the bug
Sidebar is not scrollable, menu items in the bottom get blocked by dark mode switch button.

To Reproduce
Steps to reproduce the behavior:

  1. Open https://axios-http.com/docs
  2. Resize browser height to be a shorter than the height of list item in sidebar.

Expected behavior
I can scroll down, so I can see and click list item in the bottom.

Screenshots
Screen Shot 2021-06-30 at 15 56 47

Desktop (please complete the following information):

  • OS: macOS Big Sur
  • Browser: Brave, Chrome, Firefox

Update docs regarding cancellation

I was searching about cancellable requests and was a bit confused about the existing docs here -> https://axios-http.com/docs/cancellation as they only talked about cancellable promises and I wanted to use AbortController

Turns out, AbortController is of course supported since this PR was merged, but I had to dig a bit deep into the code to find that 😅

Maybe the docs should reflect the support for AbortController and reference to the relevant JS API ref for that!

Translate docs via Crowdin

Current way of translation

Currently, translation of .js and .md files is made offline. Translators should have quite a lot of technical knowledge to provide a translated copy without syntax errors inside. The lack of Translation Memory can also lead to inconsistency of translations and duplicated work.

Better way 😉
In short, you can use Crowdin to improve the process. Advantages are:

  • Free for Open Source. Forever;
  • All tools for collaborative translation (TM, voting, comments etc.)
  • WYSIWYG for Markdown files and safe work with .js files (only values are available for translation, non-translatable fields can be hidden)
    image
  • Automatic GitHub sync will automatically deliver changes made in source files to Crowdin (translators see up-to-date articles) and translations made by community are delivered as a PR. Existing translations would be uploaded to Crowdin after the first sync.

The configuration file for GitHub connector can be seen here:
https://github.com/Andrulko/axios-docs/blob/master/crowdin.yml

For those who are interested to see it live, I've created a temporary project:
https://andriy.crowdin.com/docs

It would be Crowdin's honour to support Axios l10n effort! Please let me know if I can help you to start a live project

Legacy node module in urlencoded

https://github.com/axios/axios-docs/blob/master/posts/en/urlencoded.md#query-string

the urlencoded page of the docs suggests using querystring module in node.js, however according to Node.js docs (https://nodejs.org/api/querystring.html), it's in legacy now, quoting:

The querystring API is considered Legacy. While it is still maintained, new code should use the URLSearchParams API instead.

In the urlencoded page, right after querystring example, an example of URLSearchParams is given.

I'd suggest that querystring example should be removed, according to Node.js docs.
However please response as you see fit.

The docs imply the default message type is application/x-www-form-urlencoded in the Spanish version instead of JSON

Describe the bug
The docs says exactly the oposite to the correct information

Location
Steps to localize the error:

  1. Visit https://axios-http.com/es/docs/urlencoded or visit posts/es/urlencoded.md in this repo
  2. The error is in the first body line

Expected behavior
The default is sending JSON. The message says that you should follow the docs page if you want to send OTHER type than application/x-www-form-urlencoded, hinting that the default is application/x-www-form-urlencoded

Additional context
PR solving the issue: #173

npm run build error

AxiosError.call(axiosError, error.message, code, config, request, response);
^
AxiosError: connect ETIMEDOUT 98.159.108.57:443
at Function.AxiosError.from (C:\Users\Downloads\axios-docs-dependabot-npm_and_yarn-ejs-3.1.9\axios-docs-dependabot-npm_and_yarn-ejs-3.1.9\node_modules\axios\dist\node\axios.cjs:825:14)
at RedirectableRequest.handleRequestError (C:\Users\Downloads\axios-docs-dependabot-npm_and_yarn-ejs-3.1.9\axios-docs-dependabot-npm_and_yarn-ejs-3.1.9\node_modules\axios\dist\node\axios.cjs:2961:25)
at RedirectableRequest.emit (node:events:513:28)
at ClientRequest.eventHandlers. (C:\Users\Downloads\axios-docs-dependabot-npm_and_yarn-ejs-3.1.9\axios-docs-dependabot-npm_and_yarn-ejs-3.1.9\node_modules\follow-redirects\index.js:14:24)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:494:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
port: 443,
address: '98.159.108.57',
syscall: 'connect',
code: 'ETIMEDOUT',
errno: -4039,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: null
},
validateStatus: [Function: validateStatus],
headers: AxiosHeaders {
Accept: 'application/json, text/plain, /',
'User-Agent': 'axios/1.3.2',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
responseType: 'arraybuffer',
method: 'get',
url: 'https://www.gravatar.com/avatar/a47702f87fd83381827bdd742dea04a1?default=404',
data: undefined
},
request: <ref *3> Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 0,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError],
socket: [Function: handleRequestSocket]
},
_eventsCount: 3,
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/avatar/a47702f87fd83381827bdd742dea04a1?default=404',
method: 'GET',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, /',
'User-Agent': 'axios/1.3.2',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: { http: undefined, https: undefined },
auth: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'www.gravatar.com',
port: '',
agent: undefined,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [
'ACL', 'BIND', 'CHECKOUT',
'CONNECT', 'COPY', 'DELETE',
'GET', 'HEAD', 'LINK',
'LOCK', 'M-SEARCH', 'MERGE',
'MKACTIVITY', 'MKCALENDAR', 'MKCOL',
'MOVE', 'NOTIFY', 'OPTIONS',
'PATCH', 'POST', 'PROPFIND',
'PROPPATCH', 'PURGE', 'PUT',
'REBIND', 'REPORT', 'SEARCH',
'SOURCE', 'SUBSCRIBE', 'TRACE',
'UNBIND', 'UNLINK', 'UNLOCK',
'UNSUBSCRIBE'
],
STATUS_CODES: {
'100': 'Continue',
'101': 'Switching Protocols',
'102': 'Processing',
'103': 'Early Hints',
'200': 'OK',
'201': 'Created',
'202': 'Accepted',
'203': 'Non-Authoritative Information',
'204': 'No Content',
'205': 'Reset Content',
'206': 'Partial Content',
'207': 'Multi-Status',
'208': 'Already Reported',
'226': 'IM Used',
'300': 'Multiple Choices',
'301': 'Moved Permanently',
'302': 'Found',
'303': 'See Other',
'304': 'Not Modified',
'305': 'Use Proxy',
'307': 'Temporary Redirect',
'308': 'Permanent Redirect',
'400': 'Bad Request',
'401': 'Unauthorized',
'402': 'Payment Required',
'403': 'Forbidden',
'404': 'Not Found',
'405': 'Method Not Allowed',
'406': 'Not Acceptable',
'407': 'Proxy Authentication Required',
'408': 'Request Timeout',
'409': 'Conflict',
'410': 'Gone',
'411': 'Length Required',
'412': 'Precondition Failed',
'413': 'Payload Too Large',
'414': 'URI Too Long',
'415': 'Unsupported Media Type',
'416': 'Range Not Satisfiable',
'417': 'Expectation Failed',
'418': "I'm a Teapot",
'421': 'Misdirected Request',
'422': 'Unprocessable Entity',
'423': 'Locked',
'424': 'Failed Dependency',
'425': 'Too Early',
'426': 'Upgrade Required',
'428': 'Precondition Required',
'429': 'Too Many Requests',
'431': 'Request Header Fields Too Large',
'451': 'Unavailable For Legal Reasons',
'500': 'Internal Server Error',
'501': 'Not Implemented',
'502': 'Bad Gateway',
'503': 'Service Unavailable',
'504': 'Gateway Timeout',
'505': 'HTTP Version Not Supported',
'506': 'Variant Also Negotiates',
'507': 'Insufficient Storage',
'508': 'Loop Detected',
'509': 'Bandwidth Limit Exceeded',
'510': 'Not Extended',
'511': 'Network Authentication Required'
},
Agent: [Function: Agent] { defaultMaxSockets: Infinity },
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function: _node_internal],
validateHeaderValue: [Function: _node_internal],
get: [Function: get],
request: [Function: request],
setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 7,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
},
pathname: '/avatar/a47702f87fd83381827bdd742dea04a1',
search: '?default=404'
},
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: <ref *1> ClientRequest {
_events: [Object: null prototype] {
response: [Function: bound onceWrapper] {
listener: [Function (anonymous)]
},
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: <ref *2> TLSSocket {
_tlsOptions: {
allowHalfOpen: undefined,
pipe: false,
secureContext: SecureContext { context: SecureContext {} },
isServer: false,
requestCert: true,
rejectUnauthorized: true,
session: undefined,
ALPNProtocols: undefined,
requestOCSP: undefined,
enableTrace: undefined,
pskCallback: undefined,
highWaterMark: undefined,
onread: undefined,
signal: undefined
},
_secureEstablished: false,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: true,
_SNICallback: null,
servername: null,
alpnProtocol: null,
authorized: false,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype] {
close: [
[Function: onSocketCloseDestroySSL],
[Function],
[Function: onClose],
[Function: socketCloseListener]
],
end: [ [Function: onConnectEnd], [Function: onReadableStreamEnd] ],
newListener: [Function: keylogNewListener],
connect: [ [Function], [Function], [Function] ],
secure: [Function: onConnectSecure],
session: [Function (anonymous)],
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
drain: [Function: ondrain]
},
_eventsCount: 11,
connecting: false,
_hadError: true,
_parent: null,
_host: 'www.gravatar.com',
_closeAfterHandlingError: false,
_readableState: ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
ended: false,
endEmitted: false,
reading: true,
constructed: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
errorEmitted: true,
emitClose: false,
autoDestroy: true,
destroyed: true,
errored: Error: connect ETIMEDOUT 98.159.108.57:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
errno: -4039,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '98.159.108.57',
port: 443
},
closed: true,
closeEmitted: true,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
multiAwaitDrain: false,
readingMore: false,
dataEmitted: false,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: true,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 226,
writing: true,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: [Function: bound onFinish],
writelen: 226,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: true,
emitClose: false,
autoDestroy: true,
errored: Error: connect ETIMEDOUT 98.159.108.57:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
errno: -4039,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '98.159.108.57',
port: 443
},
closed: true,
closeEmitted: true,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: 'GET /avatar/a47702f87fd83381827bdd742dea04a1?default=404 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/1.3.2\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: www.gravatar.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_pendingEncoding: 'latin1',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: TLSWrap {
_parent: TCP {
reading: [Getter/Setter],
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(handle_onclose)]: [Function: done]
},
_parentWrap: undefined,
_secureContext: SecureContext { context: SecureContext {} },
reading: false,
onkeylog: [Function: onkeylog],
onhandshakestart: {},
onhandshakedone: [Function (anonymous)],
onocspresponse: [Function: onocspresponse],
onnewsession: [Function: onnewsessionclient],
onerror: [Function: onerror],
[Symbol(owner_symbol)]: [Circular *2]
},
[Symbol(verified)]: false,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 167,
[Symbol(kHandle)]: null,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: {
rejectUnauthorized: true,
ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
checkServerIdentity: [Function: checkServerIdentity],
minDHSize: 1024,
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: null,
method: 'GET',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, /',
'User-Agent': 'axios/1.3.2',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: { http: undefined, https: undefined },
auth: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'www.gravatar.com',
port: 443,
agent: undefined,
nativeProtocols: { 'http:': [Object], 'https:': [Object] },
pathname: '/avatar/a47702f87fd83381827bdd742dea04a1',
search: '?default=404',
_defaultAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 7,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
host: 'www.gravatar.com',
servername: 'www.gravatar.com',
_agentKey: 'www.gravatar.com:443:::::::::::::::::::::',
encoding: null,
singleUse: true
}
},
_header: 'GET /avatar/a47702f87fd83381827bdd742dea04a1?default=404 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/1.3.2\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: www.gravatar.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype] { path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'opencollective-production.s3.us-west-1.amazonaws.com:443:::::::::::::::::::::': [ [TLSSocket], [TLSSocket] ],
'www.gravatar.com:443:::::::::::::::::::::': [
[TLSSocket],
[TLSSocket],
[TLSSocket],
[TLSSocket],
[TLSSocket]
]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 7,
maxCachedSessions: 100,
_sessionCache: {
map: {
'opencollective.com:443:::::::::::::::::::::': [Buffer [Uint8Array]],
'opencollective-production.s3.us-west-1.amazonaws.com:443:::::::::::::::::::::': [Buffer [Uint8Array]],
'logo.clearbit.com:443:::::::::::::::::::::': [Buffer [Uint8Array]],
'opencollective-production.s3-us-west-1.amazonaws.com:443:::::::::::::::::::::': [Buffer [Uint8Array]]
},
list: [
'opencollective.com:443:::::::::::::::::::::',
'opencollective-production.s3.us-west-1.amazonaws.com:443:::::::::::::::::::::',
'logo.clearbit.com:443:::::::::::::::::::::',
'opencollective-production.s3-us-west-1.amazonaws.com:443:::::::::::::::::::::'
]
},
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/avatar/a47702f87fd83381827bdd742dea04a1?default=404',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'www.gravatar.com',
protocol: 'https:',
_redirectable: [Circular *3],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: true,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, /' ],
'user-agent': [ 'User-Agent', 'axios/1.3.2' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', 'www.gravatar.com' ]
},
[Symbol(kUniqueHeaders)]: null
},
_currentUrl: 'https://www.gravatar.com/avatar/a47702f87fd83381827bdd742dea04a1?default=404',
[Symbol(kCapture)]: false
},
cause: Error: connect ETIMEDOUT 98.159.108.57:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
errno: -4039,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '98.159.108.57',
port: 443
}
}

Styling the links at the bottom of the Axios Webpage

Is your feature request related to a problem? Please describe.
The Links at the bottom of the page seem a bit out of place just sitting there pretty much not styled unlike the rest of the page

Describe the solution you'd like
style them, just simple not too much or maybe even introduce a datalist into the language part so its easier

Describe alternatives you've considered
atleast spacing them better

Additional context
Add any other context or screenshots about the feature request here.

how to build locally but with different base path

I want to serve axios-docs in our intranet environment, but with different base path.

I have a nginx server with following structure

/usr/share/nginx/html/devdocs/axois

Is this possible with inert ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.